[patch 06/12] mac80211: fix sparse warning
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2007-09-26 13:24:57
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2007-09-26 13:24:57
wme.c triggers a sparse warning; it wasn't noticed before because until recently ARRAY_SIZE triggered a sparse error. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> --- net/mac80211/wme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- wireless-dev.orig/net/mac80211/wme.c 2007-09-25 23:28:21.361570692 +0200
+++ wireless-dev/net/mac80211/wme.c 2007-09-25 23:29:37.301571614 +0200@@ -359,7 +359,7 @@ static int wme_qdiscop_init(struct Qdisc skb_queue_head_init(&q->requeued[i]); q->queues[i] = qdisc_create_dflt(qd->dev, &pfifo_qdisc_ops, qd->handle); - if (q->queues[i] == 0) { + if (!q->queues[i]) { q->queues[i] = &noop_qdisc; printk(KERN_ERR "%s child qdisc %i creation failed", dev->name, i); }
--