net/octeontx2: remove useless check before free
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 9 Oct 2020 12:39:05 +0000 (20:39 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:47:58 +0000 (19:47 +0200)
commit29892e064c1813927195fdbb7d80aede1ccd017d
treef4dc062ee99c617cf2a2515c98f90145cd3439fb
parentbe8acb27c20f974b8f4e78cc842b2d301d5d77c2
net/octeontx2: remove useless check before free

The glibc free allows free(NULL) as null operation,
so remove this useless null checks.

Coverity issue: 357719
Fixes: da138cd47e06 ("net/octeontx2: handle port reconfigure")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c