diff options
author | Li Zhijian <[email protected]> | 2022-12-03 11:37:14 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2022-12-04 15:34:52 +0200 |
commit | 6978837ce42f8bea85041fc08c854f4e28852b3e (patch) | |
tree | 8bc72e90d5775476de55321e8361a245e1855401 /lib/mpi/mpi-mod.c | |
parent | ed461b30b22c8fa85c25189c14cb89f29595cd14 (diff) |
RDMA/mlx5: no need to kfree NULL pointer
Goto label 'free' where it will kfree the 'in' is not needed though
it's safe to kfree NULL. Return err code directly to simplify the code.
1973 free:
1974 kfree(in);
1975 return err;
Signed-off-by: Li Zhijian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions