diff options
author | Dan Carpenter | 2014-03-31 09:50:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-04-14 17:29:24 +0200 |
commit | f619621f409a9e8d5c56b2089d359fe3b5b8ad57 (patch) | |
tree | 6b8e1fcc9c011a6ccf46c0642c23c186a5910871 | |
parent | staging: rtl8723au: Simplify retrieving the ether_type in portctrl() (diff) | |
download | kernel-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.c | 3 |
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; } |