Commit 8b661b50 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

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: default avatarDan Carpenter <error27@gmail.com>
Cc: linux-dev@sensoray.com
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent aab9796f
...@@ -2528,10 +2528,7 @@ static int s2255_stop_acquire(struct s2255_dev *dev, unsigned long chn) ...@@ -2528,10 +2528,7 @@ static int s2255_stop_acquire(struct s2255_dev *dev, unsigned long chn)
static void s2255_stop_readpipe(struct s2255_dev *dev) static void s2255_stop_readpipe(struct s2255_dev *dev)
{ {
struct s2255_pipeinfo *pipe = &dev->pipe; struct s2255_pipeinfo *pipe = &dev->pipe;
if (dev == NULL) {
s2255_dev_err(&dev->udev->dev, "invalid device\n");
return;
}
pipe->state = 0; pipe->state = 0;
if (pipe->stream_urb) { if (pipe->stream_urb) {
/* cancel urb */ /* cancel urb */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment