]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8712: changed function argument to __le32
authorJannik Becher <becher.jannik@gmail.com>
Tue, 20 Dec 2016 17:59:40 +0000 (18:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 15:51:16 +0000 (16:51 +0100)
Fixed a sparse warning "cast to restricted __le32".
Function argument is of type __le32.

Signed-off-by: Jannik Becher <becher.jannik@gmail.com>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_cmd.c
drivers/staging/rtl8712/rtl8712_event.h

index 6e5e1770adebb75062c6cb42837b401902955e38..f19b6b27aa7142825dcce926f9e22af36eee9cbc 100644 (file)
@@ -425,7 +425,7 @@ _next:
        thread_exit();
 }
 
-void r8712_event_handle(struct _adapter *padapter, uint *peventbuf)
+void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf)
 {
        u8 evt_code, evt_seq;
        u16 evt_sz;
index 29a4c23a0d23d0f09890ad5a04caae71b915a695..b38374025c93e8ec2e9a22e32ec7f4140fc95d05 100644 (file)
@@ -26,7 +26,7 @@
 #ifndef _RTL8712_EVENT_H_
 #define _RTL8712_EVENT_H_
 
-void r8712_event_handle(struct _adapter *padapter, uint *peventbuf);
+void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf);
 void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf);
 
 enum rtl8712_c2h_event {