]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix wme code
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 2 May 2008 22:44:09 +0000 (00:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 May 2008 19:15:00 +0000 (15:15 -0400)
commit73c8913164da9d075dae8611ee59443ee4c15369
treebb4c321ea741e4dae2bd87e3c75176110a8819ac
parent8ce174f19d28e0027b08220e4b2dacb0e90484a2
mac80211: fix wme code

In commit bf67b35f2d341e9b66bb55032a223110822f2793 (mac80211:
QoS related cleanups) I accidentally changed a variable from
int to u16 causing a warning that a comparison for < 0 was always
false. John thought this was a missing deletion of code and removed
the warning by deleting the never executed branch of code in commit
8ce174f19d28e0027b08220e4b2dacb0e90484a2 (wireless: fix warning
introduced by "mac80211: QoS related cleanups") but the problem really
was my mistake of using a u16 variable for the queue variable when
that variable can also contain an error code. This patch restores
the original code and variable type.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wme.c