[PATCH] net/txgbe: fix a bit with boolean operator
    Ferruh Yigit 
    ferruh.yigit at intel.com
       
    Wed Mar  2 18:34:30 CET 2022
    
    
  
On 3/2/2022 8:02 AM, Jiawen Wu wrote:
> On March 1, 2022 2:09 PM, Weiguo Li wrote:
>> Since boolean value is in 0 and 1, it's strange to combines a boolean
> value with
>> a bit operator.
>>
>> Thus it's highly possible a typo error with "if (A & !B)", and more
> probably to
>> use "if (A & ~B)" instead.
>>
>> Fixes: c1d4e9d37abdc6 ("net/txgbe: add queue stats mapping")
>>
>> Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
> 
> Acked-by: Jiawen Wu <jiawenwu at trustnetic.com>
> 
Applied to dpdk-next-net/main, thanks.
    
    
More information about the dev
mailing list