diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-10-29 00:02:11 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-09 14:05:23 -0800 |
commit | eacd121c3d0b74220aa6a91223e0adf7d5ec2497 (patch) | |
tree | 2b260ebfc7d54b746132daf0e217567933e7a5a9 | |
parent | 705059a670f3af2b37695e82de0ee58e75e656ed (diff) | |
download | kernel_samsung_smdk4412-eacd121c3d0b74220aa6a91223e0adf7d5ec2497.zip kernel_samsung_smdk4412-eacd121c3d0b74220aa6a91223e0adf7d5ec2497.tar.gz kernel_samsung_smdk4412-eacd121c3d0b74220aa6a91223e0adf7d5ec2497.tar.bz2 |
staging: vt6656: implement missing brackets
Identation says that copy_to_user() should be called only iff
wrq->u.essid.pointer is not zero. Also it is useless to call copy_to_user(0, ...).
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/vt6656/main_usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index e992d5d..7cc3d24 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -1675,13 +1675,14 @@ static int device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { { char essid[IW_ESSID_MAX_SIZE+1]; - if (wrq->u.essid.pointer) + if (wrq->u.essid.pointer) { rc = iwctl_giwessid(dev, NULL, &(wrq->u.essid), essid); if (copy_to_user(wrq->u.essid.pointer, essid, wrq->u.essid.length) ) rc = -EFAULT; + } } break; |