]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/uverbs: Convert to use ERR_CAST()
authorLi Haoran <li.haoran7@zte.com.cn>
Tue, 1 Apr 2025 13:09:23 +0000 (21:09 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 18:12:07 +0000 (15:12 -0300)
commit7bc871af417a3011739ccddabb64db482ff7d752
treed8489a4a55c7829d411c8be10dc6a3228470a0c3
parent41e2649c796e1f49c7b4d9176d2437504b78580f
RDMA/uverbs: 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/202504012109233981_YPVbd4wQzmAzP3tA5IG@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/uverbs_cmd.c