Skip to contentSkip to conversation

staging: wilc1000: Avoid excessive indentation

PATCH New Tamara Diaconita 1 participant 1 message Mar 11, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: wilc1000: Avoid excessive indentation

Modified if/else segment to avoid excessive indendation.

---
Changes since v1:
*Add space before '{'.
*Add braces to else segment.

 drivers/staging/wilc1000/linux_wlan.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/staging/wilc1000/linux_wlan.c +5 -6
index 2eebc62..a181dd9 100644
@@ -866,14 +866,13 @@ static int wilc_mac_open(struct net_device *ndev)
 				wilc_set_wfi_drv_handler(vif,
 							 wilc_get_vif_idx(vif),
 							 wl->open_ifcs);
-			} else {
-				if (memcmp(wl->vif[i ^ 1]->bssid,
-					   wl->vif[i ^ 1]->src_addr, 6))
-					wilc_set_wfi_drv_handler(vif,
+			} else if (memcmp(wl->vif[i ^ 1]->bssid,
+					  wl->vif[i ^ 1]->src_addr, 6)) {
+				wilc_set_wfi_drv_handler(vif,
 							 wilc_get_vif_idx(vif),
 							 0);
-				else
-					wilc_set_wfi_drv_handler(vif,
+			} else {
+				wilc_set_wfi_drv_handler(vif,
 							 wilc_get_vif_idx(vif),
 							 1);
 			}
Signature · 1 line
2.9.3