summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter2014-03-31 09:50:36 +0200
committerGreg Kroah-Hartman2014-04-14 17:29:24 +0200
commitf619621f409a9e8d5c56b2089d359fe3b5b8ad57 (patch)
tree6b8e1fcc9c011a6ccf46c0642c23c186a5910871
parentstaging: rtl8723au: Simplify retrieving the ether_type in portctrl() (diff)
downloadkernel-qcow2-linux-f619621f409a9e8d5c56b2089d359fe3b5b8ad57.tar.gz
kernel-qcow2-linux-f619621f409a9e8d5c56b2089d359fe3b5b8ad57.tar.xz
kernel-qcow2-linux-f619621f409a9e8d5c56b2089d359fe3b5b8ad57.zip
staging: comedi: remove an unneeded variable
"chanlist" was left over, we don't need it any more. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/comedi_fops.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index ea6dc36d753b..1e91161fb38f 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -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;
}