On 10/11/2021 7:49 AM, Michał Krawczyk wrote:
pon., 4 paź 2021 o 19:27 Ferruh Yigit <ferruh.yi...@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.yi...@intel.com>
Acked-by: Michal Krawczyk <m...@semihalf.com>


Applied to dpdk-next-net/main, thanks.

Reply via email to