Commit 3df5ee60 authored by John W. Linville's avatar John W. Linville

wireless: fix warning introduced by "mac80211: QoS related cleanups"

net/mac80211/wme.c: In function ‘wme_qdiscop_enqueue’:
net/mac80211/wme.c:219: warning: comparison is always false due to limited range of data type

drivers/net/wireless/p54/p54common.c: In function ‘p54_conf_tx’:
drivers/net/wireless/p54/p54common.c:947: warning: comparison is always false due to limited range of data type
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3a4d3af7
...@@ -944,7 +944,7 @@ static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue, ...@@ -944,7 +944,7 @@ static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue,
vdcf = (struct p54_tx_control_vdcf *)(((struct p54_control_hdr *) vdcf = (struct p54_tx_control_vdcf *)(((struct p54_control_hdr *)
((void *)priv->cached_vdcf + priv->tx_hdr_len))->data); ((void *)priv->cached_vdcf + priv->tx_hdr_len))->data);
if ((params) && !((queue < 0) || (queue > 4))) { if ((params) && !(queue > 4)) {
P54_SET_QUEUE(vdcf->queue[queue], params->aifs, P54_SET_QUEUE(vdcf->queue[queue], params->aifs,
params->cw_min, params->cw_max, params->txop); params->cw_min, params->cw_max, params->txop);
} else } else
......
...@@ -216,20 +216,15 @@ static int wme_qdiscop_enqueue(struct sk_buff *skb, struct Qdisc* qd) ...@@ -216,20 +216,15 @@ static int wme_qdiscop_enqueue(struct sk_buff *skb, struct Qdisc* qd)
rcu_read_unlock(); rcu_read_unlock();
} }
if (unlikely(queue < 0)) { tid = skb->priority & QOS_CONTROL_TAG1D_MASK;
kfree_skb(skb); pkt_data->queue = (unsigned int) queue;
err = NET_XMIT_DROP; qdisc = q->queues[queue];
} else { err = qdisc->enqueue(skb, qdisc);
tid = skb->priority & QOS_CONTROL_TAG1D_MASK; if (err == NET_XMIT_SUCCESS) {
pkt_data->queue = (unsigned int) queue; qd->q.qlen++;
qdisc = q->queues[queue]; qd->bstats.bytes += skb->len;
err = qdisc->enqueue(skb, qdisc); qd->bstats.packets++;
if (err == NET_XMIT_SUCCESS) { return NET_XMIT_SUCCESS;
qd->q.qlen++;
qd->bstats.bytes += skb->len;
qd->bstats.packets++;
return NET_XMIT_SUCCESS;
}
} }
qd->qstats.drops++; qd->qstats.drops++;
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment