]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wlan-ng: Avoid bogus endianness
authorAviya Erenfeld <aviyae42@gmail.com>
Mon, 11 Sep 2017 22:51:10 +0000 (01:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Sep 2017 14:35:28 +0000 (16:35 +0200)
commit802d7d0bf22b663b96d2a37a3168c0d8c22a0056
tree01a65fe19946246ce823a1d4d1129603c4186d9a
parent5a5251b8ad8c3383c5a3443744fdc4d303d32539
staging: wlan-ng: Avoid bogus endianness

The linkstatus variable in the info struct received as __le16
but handled in every other place in the driver as u16

Fix that and remove the sparse warning that occurred due to it:
prism2sta.c:1450:29: warning: incorrect type in assignment (different base types)
prism2sta.c:1450:29:    expected unsigned short [unsigned] [usertype] link_status_new
prism2sta.c:1450:29:    got restricted __le16 [usertype] linkstatus

Signed-off-by: Aviya Erenfeld <aviyae42@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2sta.c