octeon_ep: delete unnecessary NULL check
authorZiyang Xuan <william.xuanziyang@huawei.com>
Fri, 13 May 2022 07:29:28 +0000 (15:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 10:40:04 +0000 (11:40 +0100)
commit1dee43c2c6f159c26684e02a56373bb3b537ab24
tree2f5258bef0720104502c8a9b8f081e1afd5fdc63
parente68372efb9feae33467bdbea2654f3d91b2e0466
octeon_ep: delete unnecessary NULL check

vfree(NULL) is safe. NULL check before vfree() is not needed.
Delete them to simplify the code.

Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeon_ep/octep_main.c
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c
drivers/net/ethernet/marvell/octeon_ep/octep_tx.c