OSDN Git Service

staging: wilc1000: Remove unnecessary braces {} around single statement block
authorEyal Ilsar <edilsar@gmail.com>
Thu, 12 Apr 2018 07:59:32 +0000 (17:59 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:44:40 +0000 (15:44 +0200)
Remove unnecessary braces {} around an 'if' statement block with a single
statement. Issue found by checkpatch.

Signed-off-by: Eyal Ilsar <edilsar@gmail.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 730d64f..706ba4c 100644 (file)
@@ -284,9 +284,8 @@ static void remove_network_from_shadow(struct timer_list *unused)
                }
        }
 
-       if (last_scanned_cnt != 0) {
+       if (last_scanned_cnt != 0)
                mod_timer(&hAgingTimer, jiffies + msecs_to_jiffies(AGING_TIME));
-       }
 }
 
 static void clear_duringIP(struct timer_list *unused)