[PATCH] Staging:wilc1000:linux_wlan: Modified the 'if-else' statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Modified the 'if-else' statement to make it more readable.

Signed-off-by: Georgios Emmanouil <geo.emmnl@xxxxxxxxx>
---
 drivers/staging/wilc1000/linux_wlan.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 2eebc62..d82f0ff 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -867,15 +867,10 @@ static int wilc_mac_open(struct net_device *ndev)
 							 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,
-							 wilc_get_vif_idx(vif),
-							 0);
+				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,
-							 wilc_get_vif_idx(vif),
-							 1);
+					wilc_set_wfi_drv_handler(vif, wilc_get_vif_idx(vif), 1);
 			}
 			wilc_set_operation_mode(vif, vif->iftype);

--
2.1.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux