]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wilc1000: fix variable signedness
authorIlia Sergachev <ilia.sergachev@unibas.ch>
Sun, 9 Jul 2017 21:36:35 +0000 (23:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:58 +0000 (08:40 +0200)
txq_count receives a value from wilc_wlan_handle_txq()
and therefore should be u32

found using sparse:
drivers/staging/wilc1000/linux_wlan.c:306:58: warning:
 incorrect type in argument 2 (different signedness)

Signed-off-by: Ilia Sergachev <ilia.sergachev@unibas.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

index dbb3e24615bedcebb70e10506e9ea3b71b64ba9e..1266dcccad3045fce7ca2462df5f15960fb6df21 100644 (file)
@@ -283,7 +283,8 @@ int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc)
 
 static int linux_wlan_txq_task(void *vp)
 {
-       int ret, txq_count;
+       int ret;
+       u32 txq_count;
        struct wilc_vif *vif;
        struct wilc *wl;
        struct net_device *dev = vp;