Skip to content
Commit 6978837c authored by Li Zhijian's avatar Li Zhijian Committed by Leon Romanovsky
Browse files

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: default avatarLi Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20221203033714.25870-1-lizhijian@fujitsu.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent ed461b30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment