]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/core: Convert to use ERR_CAST()
authorLi Haoran <li.haoran7@zte.com.cn>
Tue, 1 Apr 2025 13:10:15 +0000 (21:10 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 18:12:07 +0000 (15:12 -0300)
commit8a94c42d831092ba65ce88bda020d93d2e267fe4
tree02f8de365924539aa0a32d2d2a6f28d806716543
parent7bc871af417a3011739ccddabb64db482ff7d752
RDMA/core: Convert to use ERR_CAST()

As opposed to open-code, using the ERR_CAST macro clearly indicates that
this is a pointer to an error value and a type conversion was performed.

Link: https://patch.msgid.link/r/20250401211015750qxOfU9XZ8QgKizM1Lcyq2@zte.com.cn
Signed-off-by: Li Haoran <li.haoran7@zte.com.cn>
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/verbs.c