staging: comedi: comedi_fops: rename the __user *cmd param in do_cmd_ioctl
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 18 Sep 2012 18:41:54 +0000 (11:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2012 08:36:44 +0000 (09:36 +0100)
commitcbe01f723e9287adb70410b69bedfdc87cd820b4
tree81b67fd19dbcef86e478c67bb1438e2567b71d92
parent9be56c6432633b706ab4bb961997f1d851b39535
staging: comedi: comedi_fops: rename the __user *cmd param in do_cmd_ioctl

This parameter is actually the unsigned long arg passed in the ioctl.
comedi_unlocked_ioctl() casts it as a (struct comedi_cmd __user *)
when calling do_cmd_ioctl(). Rename the variable to keep this clear.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c