RDMA: Remove unnecessary NULL values
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 4 Aug 2023 08:21:01 +0000 (16:21 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 7 Aug 2023 13:56:57 +0000 (16:56 +0300)
commit849b1955ade1c647234d6fadeb70377d9def01ca
treeb083ac629f1574f4f2a26f0dfd18af892e5b2b7e
parent26b7d1a27167e7adf75b150755e05d2bc123ce55
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: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230804082102.3361961-1-ruanjinjie@huawei.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/iwpm_util.c
drivers/infiniband/hw/irdma/verbs.c