Parcourir la source

hostapd: Remove unused variable from hostapd_get_hw_features

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Avraham Stern il y a 10 ans
Parent
commit
948d3a8731
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/ap/hw_features.c

+ 2 - 2
src/ap/hw_features.c

@@ -75,7 +75,7 @@ static char * dfs_info(struct hostapd_channel_data *chan)
 int hostapd_get_hw_features(struct hostapd_iface *iface)
 {
 	struct hostapd_data *hapd = iface->bss[0];
-	int ret = 0, i, j;
+	int i, j;
 	u16 num_modes, flags;
 	struct hostapd_hw_modes *modes;
 
@@ -138,7 +138,7 @@ int hostapd_get_hw_features(struct hostapd_iface *iface)
 		}
 	}
 
-	return ret;
+	return 0;
 }