diff options
author | Tülin İzer <tulinizer@gmail.com> | 2013-05-17 03:13:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-17 13:05:57 -0400 |
commit | 4baf0df7010e8d975edcd778604fc1b1fce30f37 (patch) | |
tree | ffb9fad6761148b33d09b2d55143f971ca8e6f92 /drivers/usb/core/devio.c | |
parent | fa86ad0b63846d35b6989cefe24e46301b94a9f3 (diff) |
usb: devio: Fixed error: 'do not use assignment in if condition'
This patch fixes error: 'do not use assignment in if condition'
in USB/devio.c.
Signed-off-by: Tülin İzer <tulinizer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/devio.c')
-rw-r--r-- | drivers/usb/core/devio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 009bc3f2fde4..47ff9b1c8a37 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -1800,7 +1800,8 @@ static int proc_ioctl(struct dev_state *ps, struct usbdevfs_ioctl *ctl) | |||
1800 | 1800 | ||
1801 | /* alloc buffer */ | 1801 | /* alloc buffer */ |
1802 | if ((size = _IOC_SIZE(ctl->ioctl_code)) > 0) { | 1802 | if ((size = _IOC_SIZE(ctl->ioctl_code)) > 0) { |
1803 | if ((buf = kmalloc(size, GFP_KERNEL)) == NULL) | 1803 | buf = kmalloc(size, GFP_KERNEL); |
1804 | if (buf == NULL) | ||
1804 | return -ENOMEM; | 1805 | return -ENOMEM; |
1805 | if ((_IOC_DIR(ctl->ioctl_code) & _IOC_WRITE)) { | 1806 | if ((_IOC_DIR(ctl->ioctl_code) & _IOC_WRITE)) { |
1806 | if (copy_from_user(buf, ctl->data, size)) { | 1807 | if (copy_from_user(buf, ctl->data, size)) { |