staging: wilc1000: fixes add spaces required around that '&&'
authorLeo Kim <leo.kim@atmel.com>
Thu, 5 Nov 2015 05:36:22 +0000 (14:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch fixes add to spaces around that '&&' or '||'.
Reported by checkpatch.pl for spaces required around that '&&' or '||' (ctx:VxE).

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index 4b2afa05d1760b5bab0f44d51696a57c87c9a959..aecb89d2bc5941ac8986e68ca8dc0c987ef9a321 100644 (file)
@@ -1093,7 +1093,7 @@ int mac_open(struct net_device *ndev)
        wl = nic->wilc;
 
 #ifdef WILC_SPI
-       if (!wl|| !wl->wilc_spidev) {
+       if (!wl || !wl->wilc_spidev) {
                netdev_err(ndev, "wilc1000: SPI device not ready\n");
                return -ENODEV;
        }
@@ -1495,8 +1495,7 @@ void wl_wlan_cleanup(struct wilc *wilc)
        if (wilc && wilc->firmware)
                release_firmware(wilc->firmware);
 
-       if (wilc&&
-          (wilc->vif[0].ndev || wilc->vif[1].ndev)) {
+       if (wilc && (wilc->vif[0].ndev || wilc->vif[1].ndev)) {
                linux_wlan_lock_timeout(&close_exit_sync, 12 * 1000);
 
                for (i = 0; i < NUM_CONCURRENT_IFC; i++)
This page took 0.026436 seconds and 5 git commands to generate.