提交 f619621f 编写于 作者: D Dan Carpenter 提交者: Greg Kroah-Hartman

staging: comedi: remove an unneeded variable

"chanlist" was left over, we don't need it any more.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 94b080bc
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册