On 2013年04月30日 00:29, David Miller wrote:
> From: Chen Gang <gang.c...@asianux.com>
> Date: Thu, 25 Apr 2013 18:49:55 +0800
> 
>>
>> 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.c...@asianux.com>
> 
> Applied, thanks.
> 
> 

Thank you, too, and also thank the related members who provide your
suggestions to this patch.

-- 
Chen Gang

Asianux Corporation

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to