diff options
author | luoqing <luoqing@kylinos.cn> | 2025-06-05 11:49:18 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-06-12 04:12:59 -0400 |
commit | 1f505a4a4250798eceb6a8568988deb545587128 (patch) | |
tree | 1518c9ee519a81dd93079ff6e3682eb5ae2e21ee /rust/helpers/uaccess.c | |
parent | 9284bc34c77399a12db1a191f35129882d067c90 (diff) |
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>
Diffstat (limited to 'rust/helpers/uaccess.c')
0 files changed, 0 insertions, 0 deletions