mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 09:33:31 +02:00
media: cx18: remove redundant zero check on retval
The check for a zero retval is redundant as all paths that lead to
this point have set retval to an error return value that is non-zero.
Remove the redundant check.
Detected by CoverityScan, CID#102589 ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
34dbb848d5
commit
7534122d60
|
|
@ -1134,8 +1134,6 @@ static int cx18_probe(struct pci_dev *pci_dev,
|
|||
free_workqueues:
|
||||
destroy_workqueue(cx->in_work_queue);
|
||||
err:
|
||||
if (retval == 0)
|
||||
retval = -ENODEV;
|
||||
CX18_ERR("Error %d on initialization\n", retval);
|
||||
|
||||
v4l2_device_unregister(&cx->v4l2_dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user