diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-03-22 12:53:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-22 23:10:31 +0300 |
commit | c3c3791ce31eb7b4fa140df20985285516ef99f2 (patch) | |
tree | 7b5b2cf76e4142c3089539ae32614734220831bd /drivers/net/ethernet/chelsio | |
parent | 3de43dc98615b15516ec65591ebe28ceb7d8d921 (diff) | |
download | linux-c3c3791ce31eb7b4fa140df20985285516ef99f2.tar.xz |
cxgb4: Remove redundant NULL check
Fix the following coccicheck warnings:
./drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3540:2-8: WARNING: NULL
check before some freeing functions is not needed.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c index 6c85a10f465c..d2ba40c19696 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c @@ -3536,8 +3536,7 @@ out: } out_free: - if (data) - kvfree(data); + kvfree(data); #undef QDESC_GET_FLQ #undef QDESC_GET_RXQ |