staging: wilc1000: remove Unnecessary parentheses around 'hif_set_mc->cnt'
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 19 Feb 2018 15:29:44 +0000 (20:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Feb 2018 17:12:54 +0000 (18:12 +0100)
Fix "Unnecessary parentheses around 'hif_set_mc->cnt'" issue found by
checkpatch.pl script.

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

index 7ddd20d..6f93966 100644 (file)
@@ -2430,7 +2430,7 @@ static void Handle_SetMulticastFilter(struct wilc_vif *vif,
        *cur_byte++ = ((hif_set_mc->cnt >> 16) & 0xFF);
        *cur_byte++ = ((hif_set_mc->cnt >> 24) & 0xFF);
 
-       if ((hif_set_mc->cnt) > 0)
+       if (hif_set_mc->cnt > 0)
                memcpy(cur_byte, wilc_multicast_mac_addr_list,
                       ((hif_set_mc->cnt) * ETH_ALEN));