staging: comedi: remove an unneeded variable
Subsystems (2)
PATCH 1/1 staging: comedi: remove an unneeded variable
"chanlist" was left over, we don't need it any more.
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/comedi/comedi_fops.c +0 -3
@@ -1597,7 +1597,6 @@ static int do_cmdtest_ioctl(struct comedi_device *dev, {struct comedi_cmd cmd;struct comedi_subdevice *s; -unsigned int *chanlist =NULL ;unsigned int __user *user_chanlist;int ret;
@@ -1626,8 +1625,6 @@ static int do_cmdtest_ioctl(struct comedi_device *dev, ret = -EFAULT ; } -kfree (chanlist); -return ret; }
Quoted 18 lines · Dan Carpenter
"chanlist" was left over, we don't need it any more.
Signed-off-by Dan Carpenter <[email protected]>drivers/staging/comedi/comedi_fops.c +0
-1@@ -1597,7 +1597,6 @@ static int do_cmdtest_ioctl(struct comedi_device *dev, {struct comedi_cmd cmd;struct comedi_subdevice *s; -unsigned int *chanlist =NULL ;unsigned int __user *user_chanlist;int ret;
drivers/staging/comedi/comedi_fops.c static int do_cmdtest_ioctl(struct comedi_device *dev, · line 1630
Quoted 8 lines
drivers/staging/comedi/comedi_fops.c +0
-2@@ -1626,8 +1625,6 @@ static int do_cmdtest_ioctl(struct comedi_device *dev, ret = -EFAULT ; } -kfree (chanlist); -return ret; }
Reviewed-by Ian Abbott <[email protected]>
Signature · 2 lines
-=( Ian Abbott @ MEV Ltd. E-mail: <[email protected]> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-