mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-25 20:09:05 +00:00
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>
This commit is contained in:
parent
2be730b828
commit
e90ce8aa3c
@ -767,8 +767,6 @@ err_pci:
|
|||||||
err_wq:
|
err_wq:
|
||||||
destroy_workqueue(cobalt->irq_work_queues);
|
destroy_workqueue(cobalt->irq_work_queues);
|
||||||
err:
|
err:
|
||||||
if (retval == 0)
|
|
||||||
retval = -ENODEV;
|
|
||||||
cobalt_err("error %d on initialization\n", retval);
|
cobalt_err("error %d on initialization\n", retval);
|
||||||
|
|
||||||
v4l2_device_unregister(&cobalt->v4l2_dev);
|
v4l2_device_unregister(&cobalt->v4l2_dev);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user