mbox series

[0/3] Convert to use ERR_CAST()

Message ID 20250401210730615ULucEmQClX13Q7svZwHsD@zte.com.cn (mailing list archive)
Headers show
Series Convert to use ERR_CAST() | expand

Message

shao.mingyin@zte.com.cn April 1, 2025, 1:07 p.m. UTC
From: Li Haoran <li.haoran7@zte.com.cn>

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.

Li Haoran (3):
  RDMA/core: Convert to use ERR_CAST()
  RDMA/uverbs: Convert to use ERR_CAST()
  RDMA/core: Convert to use ERR_CAST()

 drivers/infiniband/core/mad_rmpp.c   | 2 +-
 drivers/infiniband/core/uverbs_cmd.c | 2 +-
 drivers/infiniband/core/verbs.c      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)