aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/au0828
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 15:36:34 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 05:39:02 -0400
commit2e7b318fa17a36d8a6d9783c10e845054d8ca27f (patch)
treea931ebc6aabb184ce022bdf01f77ea7df996e52f /drivers/media/usb/au0828
parentefe1724a4fa5840139a9a1aee9089f6854866fa0 (diff)
[media] au0828-dvb: ret is never tested. Get rid of it
drivers/media/usb/au0828/au0828-dvb.c:275:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/au0828')
-rw-r--r--drivers/media/usb/au0828/au0828-dvb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/usb/au0828/au0828-dvb.c b/drivers/media/usb/au0828/au0828-dvb.c
index b328f6550d0b..9a6f15613a38 100644
--- a/drivers/media/usb/au0828/au0828-dvb.c
+++ b/drivers/media/usb/au0828/au0828-dvb.c
@@ -272,7 +272,6 @@ static void au0828_restart_dvb_streaming(struct work_struct *work)
272 struct au0828_dev *dev = container_of(work, struct au0828_dev, 272 struct au0828_dev *dev = container_of(work, struct au0828_dev,
273 restart_streaming); 273 restart_streaming);
274 struct au0828_dvb *dvb = &dev->dvb; 274 struct au0828_dvb *dvb = &dev->dvb;
275 int ret;
276 275
277 if (dev->urb_streaming == 0) 276 if (dev->urb_streaming == 0)
278 return; 277 return;
@@ -282,7 +281,7 @@ static void au0828_restart_dvb_streaming(struct work_struct *work)
282 mutex_lock(&dvb->lock); 281 mutex_lock(&dvb->lock);
283 282
284 /* Stop transport */ 283 /* Stop transport */
285 ret = stop_urb_transfer(dev); 284 stop_urb_transfer(dev);
286 au0828_write(dev, 0x608, 0x00); 285 au0828_write(dev, 0x608, 0x00);
287 au0828_write(dev, 0x609, 0x00); 286 au0828_write(dev, 0x609, 0x00);
288 au0828_write(dev, 0x60a, 0x00); 287 au0828_write(dev, 0x60a, 0x00);
@@ -293,7 +292,7 @@ static void au0828_restart_dvb_streaming(struct work_struct *work)
293 au0828_write(dev, 0x609, 0x72); 292 au0828_write(dev, 0x609, 0x72);
294 au0828_write(dev, 0x60a, 0x71); 293 au0828_write(dev, 0x60a, 0x71);
295 au0828_write(dev, 0x60b, 0x01); 294 au0828_write(dev, 0x60b, 0x01);
296 ret = start_urb_transfer(dev); 295 start_urb_transfer(dev);
297 296
298 mutex_unlock(&dvb->lock); 297 mutex_unlock(&dvb->lock);
299} 298}