Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] fix sparse warning
@ 2007-09-10 11:55 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2007-09-10 11:55 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless

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-10 13:34:51.347219618 +0200
+++ wireless-dev/net/mac80211/wme.c	2007-09-10 13:34:55.397214627 +0200
@@ -386,7 +386,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);
 		}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-10 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10 11:55 [PATCH] fix sparse warning Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox