staging: r8188eu: mark IsFrameTypeCtrl as bool
authorVihas Makwana <makvihas@gmail.com>
Wed, 2 Mar 2022 20:47:36 +0000 (02:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Mar 2022 17:27:15 +0000 (18:27 +0100)
Mark IsFrameTypeCtrl as bool as it returns true/false.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vihas Makwana <makvihas@gmail.com>
Link: https://lore.kernel.org/r/20220302204737.49056-16-makvihas@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/wifi.h

index df3331b..c1c9bae 100644 (file)
@@ -372,7 +372,7 @@ static inline unsigned char *get_hdr_bssid(unsigned char *pframe)
        return sa;
 }
 
-static inline int IsFrameTypeCtrl(unsigned char *pframe)
+static inline bool IsFrameTypeCtrl(unsigned char *pframe)
 {
        if (WIFI_CTRL_TYPE == GetFrameType(pframe))
                return true;