Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683851
| From | Ilia Sergachev <ilia.sergachev@unibas.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: wilc1000: fix variable signedness |
| Date | 2017-07-09 23:50 +0200 |
| Message-ID | <u1sfv-4BD-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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>
---
drivers/staging/wilc1000/linux_wlan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 308708450830..0b097aca597e 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -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;
--
2.11.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging: wilc1000: fix variable signedness Ilia Sergachev <ilia.sergachev@unibas.ch> - 2017-07-09 23:50 +0200
csiph-web