Shut up compiler on compiling mac80211 for unused variable
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 13 Oct 2009 20:45:20 +0000 (13:45 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 13 Oct 2009 22:45:19 +0000 (15:45 -0700)
commit2c72471dbf8093831bcd5822a254f9b5f20351f5
treedb4ecfb900822878db90bb6fb6f0576b2d05915e
parentbff9e3a4006e443e75f069ca21c9fceaab2fdb98
Shut up compiler on compiling mac80211 for unused variable

We can avoid this compiler warning by using the used variable
on the if (0) branch as that is never going to happen anyway.

  CC [M]  /home/mcgrof/devel/compat-wireless-2.6/net/wireless/scan.o
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/scan.c: In function ‘cfg80211_bss_update’:
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/scan.c:422: warning: unused variable ‘used’

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/patches/02-ksize.patch