summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/au0828/au0828-video.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-03-22 17:32:01 +0100
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-04-05 20:10:07 +0200
commit49375e68fec71d067ea02e74386cf6171bab85f5 (patch)
treebdfb4f6b3ff741bf4bb61f4bd51617ba40ffc77e /drivers/media/usb/au0828/au0828-video.c
parent[media] vcodec: mediatek: Remove double parentheses (diff)
downloadlinux-49375e68fec71d067ea02e74386cf6171bab85f5.tar.xz
linux-49375e68fec71d067ea02e74386cf6171bab85f5.zip
[media] usb: au0828: remove redundant code
The check for ret being non-zero is false as ret is always zero, hence we have redundant dead code that can be removed. Detected with CoverityScan, CID#112968 ("Constant' variable guards dead code (DEADCODE)'") 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@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/au0828/au0828-video.c')
-rw-r--r--drivers/media/usb/au0828/au0828-video.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c
index 16f9125a985a..2a255bd32bb3 100644
--- a/drivers/media/usb/au0828/au0828-video.c
+++ b/drivers/media/usb/au0828/au0828-video.c
@@ -809,16 +809,9 @@ static void au0828_analog_stream_reset(struct au0828_dev *dev)
*/
static int au0828_stream_interrupt(struct au0828_dev *dev)
{
- int ret = 0;
-
dev->stream_state = STREAM_INTERRUPT;
if (test_bit(DEV_DISCONNECTED, &dev->dev_state))
return -ENODEV;
- else if (ret) {
- set_bit(DEV_MISCONFIGURED, &dev->dev_state);
- dprintk(1, "%s device is misconfigured!\n", __func__);
- return ret;
- }
return 0;
}