net/ena: remove useless address check
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 4 Oct 2021 17:27:02 +0000 (18:27 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Oct 2021 15:47:31 +0000 (17:47 +0200)
commit7a4edfd7bbcd0a3bcb726bc8a109419a600273be
treea631ffe209156712fa0927dcc2e9f7c7605374ff
parentefcaa81e0b5100326928be84cc341f0ac82fc3b2
net/ena: remove useless address check

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@intel.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_rss.c