staging: rtl8188eu: change return type of rtw_hal_xmit()
authorMichael Straube <straube.linux@gmail.com>
Sat, 27 Oct 2018 20:28:49 +0000 (22:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2018 11:41:00 +0000 (12:41 +0100)
The function rtw_hal_xmit() returns true or false.
Change the return type from s32 to bool.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
drivers/staging/rtl8188eu/include/hal_intf.h

index 69a0edd277108b0f7d6986935d91e55b4aa4dd62..35bc8fc32db164a816de20690ba0c797f8828ee6 100644 (file)
@@ -598,7 +598,7 @@ bool rtl8188eu_xmitframe_complete(struct adapter *adapt,
  *     true    dump packet directly
  *     false   enqueue packet
  */
-s32 rtw_hal_xmit(struct adapter *adapt, struct xmit_frame *pxmitframe)
+bool rtw_hal_xmit(struct adapter *adapt, struct xmit_frame *pxmitframe)
 {
        s32 res;
        struct xmit_buf *pxmitbuf = NULL;
index e5be27af7bf5ff2c369aa8f931388c8963689914..8b65fcba1967f710b84b9b4bfecc6d91bddd34f4 100644 (file)
@@ -185,7 +185,7 @@ u32 rtw_hal_inirp_init(struct adapter *padapter);
 void   rtw_hal_inirp_deinit(struct adapter *padapter);
 void usb_intf_stop(struct adapter *padapter);
 
-s32    rtw_hal_xmit(struct adapter *padapter, struct xmit_frame *pxmitframe);
+bool rtw_hal_xmit(struct adapter *padapter, struct xmit_frame *pxmitframe);
 s32    rtw_hal_mgnt_xmit(struct adapter *padapter,
                          struct xmit_frame *pmgntframe);