]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: cobalt: remove redundant zero check on retval
authorColin Ian King <colin.king@canonical.com>
Tue, 5 Sep 2017 15:19:44 +0000 (11:19 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 12:29:45 +0000 (08:29 -0400)
commite90ce8aa3cb2fcfb0fd45f95e89946a15c03737c
tree28a70026ec999173ca9c026d5d344f9f6126e528
parent2be730b828c59fc776c8045883c1dc7a37d7b457
media: cobalt: remove redundant zero check on retval

The error handling paths all end up with retval being non-zero,
so the check for retval being zero is always false and hence
is redundant. Remove it.

Detected by CoverityScan CID#1309479 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cobalt/cobalt-driver.c