staging: wilc1000: handle_cfg_param: change data type of wid_cnt
authorChaehyun Lim <chaehyun.lim@gmail.com>
Tue, 23 Feb 2016 06:37:59 +0000 (15:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:28:33 +0000 (22:28 -0800)
This patch changes data type of wid_cnt from u8 to int.
This variable uses array index of struct wid_list so that it is better
to use int type.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index c97df27e7cade3b7e8ed399f80e356b7203059f3..382f946425b0b2c01c31920ae335528f30f1a7a3 100644 (file)
@@ -473,7 +473,7 @@ static s32 handle_cfg_param(struct wilc_vif *vif,
        s32 result = 0;
        struct wid wid_list[32];
        struct host_if_drv *hif_drv = vif->hif_drv;
-       u8 wid_cnt = 0;
+       int wid_cnt = 0;
 
        down(&hif_drv->sem_cfg_values);