[dpdk-dev] [PATCH] net/cxgbe: remove useless address check
Ferruh Yigit
ferruh.yigit at intel.com
Wed Oct 6 13:33:28 CEST 2021
On 10/4/2021 8:32 PM, Rahul Lakkireddy wrote:
> On Monday, October 10/04/21, 2021 at 18:27:54 +0100, Ferruh Yigit wrote:
>> reported by "gcc (GCC) 12.0.0 20211003 (experimental)":
>>
>> ../drivers/net/cxgbe/cxgbe_ethdev.c:
>> In function ‘cxgbe_dev_rx_queue_setup’:
>> ../drivers/net/cxgbe/cxgbe_ethdev.c:682:24:
>> error: the comparison will always evaluate as ‘true’ for the
>> address of ‘fl’ will never be NULL [-Werror=address]
>> 682 | if ((&rxq->fl) != NULL)
>> | ^~
>>
>> Fixing it by removing useless check.
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
>
> Looks good. Thanks for fixing it up.
>
> Reviewed-by: Rahul Lakkireddy <rahul.lakkireddy at chelsio.com>
>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list