Staging: wlan-ng: Fix endian error
authorAdrien Descamps <adrien.descamps@gmail.com>
Thu, 9 Mar 2017 20:15:19 +0000 (21:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 14:17:02 +0000 (15:17 +0100)
commit68e009ed1cc699a32557705d76877c5209400103
tree009e5d0de96a7f6a71aa788c14903ed6c81810f1
parenta18ffdf4ea7c6ac496f940d0852d42e1074c3450
Staging: wlan-ng: Fix endian error

sparse report fixed:
drivers/staging//wlan-ng//hfa384x_usb.c:3517:35: warning: restricted __be64 degrades to integer
drivers/staging//wlan-ng//hfa384x_usb.c:3517:33: warning: incorrect type in assignment (different base types)
drivers/staging//wlan-ng//hfa384x_usb.c:3517:33:    expected restricted __be64 [usertype] mactime
drivers/staging//wlan-ng//hfa384x_usb.c:3517:33:    got unsigned long long

Computation on the value should be done when in machine format, not in big endian format.

Signed-off-by: Adrien Descamps <adrien.descamps@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c