On 10/13/2021 4:54 PM, Singh, Jasvinder wrote:
-----Original Message-----
From: Yigit, Ferruh <ferruh.yi...@intel.com>
Sent: Monday, October 4, 2021 6:27 PM
To: Singh, Jasvinder <jasvinder.si...@intel.com>; Dumitrescu, Cristian
<cristian.dumitre...@intel.com>
Cc: Yigit, Ferruh <ferruh.yi...@intel.com>; dev@dpdk.org
Subject: [PATCH] net/softnic: remove useless address check
Reported by "gcc (GCC) 12.0.0 20211003 (experimental)":
./drivers/net/softnic/rte_eth_softnic_cli.c:
In function ‘tmgr_hierarchy_default’:
./drivers/net/softnic/rte_eth_softnic_cli.c:634:73:
error: the comparison will always evaluate as ‘true’ for the
address of ‘tc_valid’ will never be NULL [-Werror=address]
634 | (¶ms->shared_shaper_id.tc_valid[0]) ? 1 : 0,
| ^
Fixing it by removing useless check.
Signed-off-by: Ferruh Yigit <ferruh.yi...@intel.com>
Fixes: 1af2dc5111ce ("net/softnic: add command for default tmgr hierarchy")
Fixes: 5eb676d74fc8 ("net/softnic: add config flexibility to TM")
Cc: sta...@dpdk.org
Acked-by: Jasvinder Singh <jasvinder.si...@intel.com>
Applied to dpdk-next-net/main, thanks.