staging: r8188eu: mark rtw_is_desired_network as bool
authorVihas Makwana <makvihas@gmail.com>
Wed, 2 Mar 2022 20:47:24 +0000 (02:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Mar 2022 17:27:14 +0000 (18:27 +0100)
Mark rtw_is_desired_network 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-4-makvihas@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme.c

index 4bb6edc..8d36ab9 100644 (file)
@@ -571,7 +571,7 @@ static void rtw_add_network(struct adapter *adapter,
 /*                     (3) WMM */
 /*                     (4) HT */
 /*                     (5) others */
-static int rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwork)
+static bool rtw_is_desired_network(struct adapter *adapter, struct wlan_network *pnetwork)
 {
        struct security_priv *psecuritypriv = &adapter->securitypriv;
        struct mlme_priv *pmlmepriv = &adapter->mlmepriv;