RDMA/hns: ZERO_OR_NULL_PTR macro overdetection

sizeof(xx) these variable values' return values cannot be 0.
For memory allocation requests of non-zero length,
there is no need to check other return values;
it is sufficient to only verify that it is not null.

Signed-off-by: luoqing <luoqing@kylinos.cn>
Link: https://patch.msgid.link/20250605034918.242682-1-l1138897701@163.com
Reviewed-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
luoqing 2025-06-05 11:49:18 +08:00 • committed by Leon Romanovsky
commit 1f505a4a42
2 changed files with 5 additions and 5 deletions