]> 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:08:40 +0000 (21:08 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 18:12:06 +0000 (15:12 -0300)
commit41e2649c796e1f49c7b4d9176d2437504b78580f
tree63ec3863fe28e3d416068086638154dcfb15824b
parent2633ddff9b0f6f2a41f9f05cf18afacc029f8ef7
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/20250401210840146_IyrV3zlejzz3eAnDmMSB@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/mad_rmpp.c