net/cxgbe: remove useless address check
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 4 Oct 2021 17:27:54 +0000 (18:27 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 6 Oct 2021 11:22:18 +0000 (13:22 +0200)
commita99bf9516c8db46a1b8fbb6f8f37e1242b96ee4e
tree29b7c3b6bffa69e4876f9523265d8e33ef4d80ba
parent8c9f976f05bb73e2353741137ff4def526b47cb2
net/cxgbe: remove useless address check

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@intel.com>
Reviewed-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_ethdev.c