hostapd: Remove unused variable from hostapd_get_hw_features
authorAvraham Stern <avraham.stern@intel.com>
Mon, 19 Jan 2015 01:44:36 +0000 (20:44 -0500)
committerJouni Malinen <j@w1.fi>
Tue, 20 Jan 2015 00:10:33 +0000 (02:10 +0200)
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
src/ap/hw_features.c

index f6d79ea..05431d3 100644 (file)
@@ -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;
 }