Skip to content
Commit 849b1955 authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Leon Romanovsky
Browse files

RDMA: Remove unnecessary NULL values



The NULL initialization of the pointers assigned by kzalloc() first is
not necessary, because if the kzalloc() failed, the pointers will be
assigned NULL, otherwise it works as usual. so remove it.

Signed-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230804082102.3361961-1-ruanjinjie@huawei.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 26b7d1a2
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