]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6656: sparse fixes ethtool_ioctl Use struct ifreq *
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 13 Jan 2014 16:21:09 +0000 (16:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jan 2014 23:43:24 +0000 (15:43 -0800)
commit08744efbb0154f21881aa66735a0ae4263c0d941
tree6868a9c184b66ead92b38f5a83dfb54bf0cbab62
parent1107ae3c3114b3c07426d27416a29fb8ef5b5ef7
staging: vt6656: sparse fixes ethtool_ioctl Use struct ifreq *

Replace useraddr with direct point to struct ifreq->ifr_data

sparse warnings
main_usb.c:1443:44: warning: cast removes address space of expression
main_usb.c:1454:37: warning: incorrect type in argument 2 (different address spaces)
main_usb.c:1454:37:    expected void const [noderef] <asn:1>*from
main_usb.c:1454:37:    got void *useraddr
main_usb.c:1462:34: warning: incorrect type in argument 1 (different address spaces)
main_usb.c:1462:34:    expected void [noderef] <asn:1>*to
main_usb.c:1462:34:    got void *useraddr

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/main_usb.c