staging: wilc1000: use 'else if' condition in get_station()
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 2 May 2018 07:13:32 +0000 (12:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 May 2018 20:56:35 +0000 (13:56 -0700)
Use 'else if' in get_station(), as only one condition will statisfy.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index c93c55d..f55e737 100644 (file)
@@ -1143,9 +1143,7 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
 
                wilc_get_inactive_time(vif, mac, &inactive_time);
                sinfo->inactive_time = 1000 * inactive_time;
-       }
-
-       if (vif->iftype == STATION_MODE) {
+       } else if (vif->iftype == STATION_MODE) {
                struct rf_info stats;
 
                wilc_get_statistics(vif, &stats);