[dpdk-dev] [PATCH] net/ena: remove useless address check
Ferruh Yigit
ferruh.yigit at intel.com
Mon Oct 11 17:49:47 CEST 2021
On 10/11/2021 7:49 AM, Michał Krawczyk wrote:
> pon., 4 paź 2021 o 19:27 Ferruh Yigit <ferruh.yigit at intel.com> napisał(a):
>>
>> Reported by "gcc (GCC) 12.0.0 20211003 (experimental)":
>>
>> ./drivers/net/ena/ena_rss.c: In function ‘ena_rss_reta_query’:
>> ./drivers/net/ena/ena_rss.c:140:66:
>> error: the comparison will always evaluate as ‘false’ for the
>> pointer operand in ‘reta_conf + 136’ must not be NULL
>> [-Werror=address]
>> 140 | (reta_size > RTE_RETA_GROUP_SIZE && ((reta_conf + 1) == NULL)))
>> | ^~
>>
>> Fixing it by removing useless check.
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> Acked-by: Michal Krawczyk <mk at semihalf.com>
>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list