[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1523371795-5090-1-git-send-email-edilsar@gmail.com>
Date: Wed, 11 Apr 2018 00:49:55 +1000
From: Eyal Ilsar <edilsar@...il.com>
To: aditya.shankar@...rochip.com, ganesh.krishna@...rochip.com,
gregkh@...uxfoundation.org
Cc: linux-wireless@...r.kernel.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: wilc1000: Remove unnecessary braces {} around single statement block
Remove unnecessary braces {} around an 'if' statement block with a single
statement. Issue found by checkpatch.
Signed-off-by: Eyal Ilsar<edilsar@...il.com>
---
This is part of my take on the Eudyptula challenge
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 205304c..325afe1 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -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)
--
2.7.4
Powered by blists - more mailing lists