diff options
author | Chaehyun Lim <chaehyun.lim@gmail.com> | 2016-02-11 13:46:23 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-11 19:31:50 -0800 |
commit | 67ba5d6d6e12495f6c2f6ed260d13f4cf77caf1e (patch) | |
tree | 8960654e620e8fda108dff39bae0e96145e42902 | |
parent | 6e944459aa868a274d07a50b3c7b774387624d94 (diff) | |
download | op-kernel-dev-67ba5d6d6e12495f6c2f6ed260d13f4cf77caf1e.zip op-kernel-dev-67ba5d6d6e12495f6c2f6ed260d13f4cf77caf1e.tar.gz |
staging: wilc1000: use int type for counter variable
counter is used as for-loop control variable and indicating index of
struct wid array so that it is better to use int type.
There is no need to set to 0 when it is declared at the top of this
function. It is initialized as 0 in for-loop statement.
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index 2bc2970..f3140e0 100644 --- a/drivers/staging/wilc1000/wilc_wlan.c +++ b/drivers/staging/wilc1000/wilc_wlan.c @@ -1352,7 +1352,7 @@ int wilc_wlan_cfg_get_val(u32 wid, u8 *buffer, u32 buffer_size) int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, u32 count, u32 drv) { - s32 counter = 0; + int counter; int ret = 0; if (mode == GET_CFG) { |