aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s2255drv.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-05 02:00:47 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:59:14 -0400
commit8b661b508b3a4c8d9fc7a4b10507d3f1172947c3 (patch)
tree9fa73a7b8aa13324d4180501ce8b25811b65c238 /drivers/media/video/s2255drv.c
parentaab9796f5580a988c46c130a727cdc398a05317b (diff)
V4L/DVB: s2255drv: remove dead code
My concern initially was we dereference "dev" in the parameter list to s2255_dev_err() but it turns out that code path is never used. The s2255_stop_readpipe() is only called from one place and "dev" is never null. So this patch just removes the whole condition here. Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: linux-dev@sensoray.com Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s2255drv.c')
-rw-r--r--drivers/media/video/s2255drv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c
index 1f9a49e054a8..3c7a79f3812a 100644
--- a/drivers/media/video/s2255drv.c
+++ b/drivers/media/video/s2255drv.c
@@ -2528,10 +2528,7 @@ static int s2255_stop_acquire(struct s2255_dev *dev, unsigned long chn)
2528static void s2255_stop_readpipe(struct s2255_dev *dev) 2528static void s2255_stop_readpipe(struct s2255_dev *dev)
2529{ 2529{
2530 struct s2255_pipeinfo *pipe = &dev->pipe; 2530 struct s2255_pipeinfo *pipe = &dev->pipe;
2531 if (dev == NULL) { 2531
2532 s2255_dev_err(&dev->udev->dev, "invalid device\n");
2533 return;
2534 }
2535 pipe->state = 0; 2532 pipe->state = 0;
2536 if (pipe->stream_urb) { 2533 if (pipe->stream_urb) {
2537 /* cancel urb */ 2534 /* cancel urb */