Skip to contentSkip to conversation

media: usb: au0828: remove dead code

PATCH New Gustavo A. R. Silva 1 participant 1 message May 9, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: usb: au0828: remove dead code

Local variable _ret_ is assigned to a constant value and it is never updated again. Remove this variable and the dead code it guards.

Addresses-Coverity-ID: 112968

---
 drivers/media/usb/au0828/au0828-video.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/media/usb/au0828/au0828-video.c +1 -7
index 16f9125..abc80b0 100644
@@ -809,16 +809,10 @@ 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;
 }
 
Signature · 1 line
2.5.0