staging: wilc1000: linux_mon: add braces on all arms of if statement
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 1 Feb 2016 12:26:44 +0000 (21:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:34:29 +0000 (15:34 -0800)
This patch adds braces on all arms of if statement found by
checkpatch.pl
CHECK: braces {} should be used on all arms of this statement

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c

index 53d0caf..255383c 100644 (file)
@@ -278,8 +278,9 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb,
        if (!(memcmp(srcAdd, bssid, 6))) {
                mon_mgmt_tx(mon_priv->real_ndev, skb->data, skb->len);
                dev_kfree_skb(skb);
-       } else
+       } else {
                ret = wilc_mac_xmit(skb, mon_priv->real_ndev);
+       }
 
        return ret;
 }