diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2018-02-16 20:41:45 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 17:31:22 +0100 |
commit | 9574f38c436e5f72e88ca8adcc0b9da03d7e841b (patch) | |
tree | 72a75bfc12731d350f7f864cf6cae0073f631249 /drivers/staging/wilc1000/wilc_wlan_cfg.c | |
parent | 038a9572c266c067b99e8cebcda52c1e765083e1 (diff) | |
download | linux-9574f38c436e5f72e88ca8adcc0b9da03d7e841b.tar.bz2 |
staging: wilc1000: fix line over 80 chars in wilc_wlan_cfg_get_wid_value()
Fix "line over 80 character" issue found by checkpatch.pl script.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan_cfg.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wlan_cfg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c index ab69bac3080b..2b44f4cc56b7 100644 --- a/drivers/staging/wilc1000/wilc_wlan_cfg.c +++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c @@ -484,15 +484,17 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size) } while (1); } else if (type == CFG_STR_CMD) { do { - if (g_cfg_str[i].id == WID_NIL) + u32 id = g_cfg_str[i].id; + + if (id == WID_NIL) break; - if (g_cfg_str[i].id == wid) { + if (id == wid) { u32 size = g_cfg_str[i].str[0] | (g_cfg_str[i].str[1] << 8); if (buffer_size >= size) { - if (g_cfg_str[i].id == WID_SITE_SURVEY_RESULTS) { + if (id == WID_SITE_SURVEY_RESULTS) { static int toggle; i += toggle; |