summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2016-06-13 02:28:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-26 00:38:49 +0300
commit0cb7a5742d6d6ea094107ba0a3c7e3768483538c (patch)
tree0edbbdf8278e337078d4dbf3846dde9c7498d61c /drivers
parent783fa6431eb05c81640d0d2bb05cb878b924c50a (diff)
downloadlinux-0cb7a5742d6d6ea094107ba0a3c7e3768483538c.tar.xz
staging: wilc1000: add bss_type to remove line over 80 characters
A local bss_type variable is added to remove checkpatch warning of line over 80 characters. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/wilc1000/host_interface.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 96821f61820c..828efff8a35b 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -427,12 +427,14 @@ static void handle_cfg_param(struct wilc_vif *vif,
mutex_lock(&hif_drv->cfg_values_lock);
if (cfg_param_attr->flag & BSS_TYPE) {
- if (cfg_param_attr->bss_type < 6) {
+ u8 bss_type = cfg_param_attr->bss_type;
+
+ if (bss_type < 6) {
wid_list[i].id = WID_BSS_TYPE;
- wid_list[i].val = (s8 *)&cfg_param_attr->bss_type;
+ wid_list[i].val = (s8 *)&bss_type;
wid_list[i].type = WID_CHAR;
wid_list[i].size = sizeof(char);
- hif_drv->cfg_values.bss_type = (u8)cfg_param_attr->bss_type;
+ hif_drv->cfg_values.bss_type = (u8)bss_type;
} else {
netdev_err(vif->ndev, "check value 6 over\n");
goto unlock;