kernel_optimize_test/net/mac802154
Chen Gang 2c1bbbffa0 net: mac802154: comparision issue of type cast, finding by EXTRA_CFLAGS=-W
Change MAC802154_CHAN_NONE from ~(u8)0 to 0xff, or the comparison in
mac802154_wpan_xmit() for ``chan == MAC802154_CHAN_NONE'' will not
succeed.

This bug can be boiled down to ``u8 foo = 0xff; if (foo == ~(u8)0)
[...] else [...]'' where the condition will always take the else
branch.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-04-29 12:29:04 -04:00
..
ieee802154_dev.c mac802154: fix destructon ordering for ieee802154 devices 2012-12-14 13:14:07 -05:00
Kconfig net/mac802154: remove depends on CONFIG_EXPERIMENTAL 2013-01-11 11:40:01 -08:00
mac_cmd.c mac802154: sparse warnings: make symbols static 2012-07-12 07:54:45 -07:00
mac802154.h net: mac802154: comparision issue of type cast, finding by EXTRA_CFLAGS=-W 2013-04-29 12:29:04 -04:00
Makefile mac802154: add wpan device-class support 2012-06-26 21:06:11 -07:00
mib.c mac802154: sparse warnings: make symbols static 2012-07-12 07:54:45 -07:00
monitor.c mac802154: monitor device support 2012-05-16 15:17:08 -04:00
rx.c mac802154: add wpan device-class support 2012-06-26 21:06:11 -07:00
tx.c mac802154: use kfree_skb() instead of dev_kfree_skb() 2012-11-30 12:19:24 -05:00
wpan.c wpan: use stack buffer instead of heap 2013-02-06 15:56:17 -05:00