]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/rdmavt: Convert to use ERR_CAST()
authorShen Lichuan <shenlichuan@vivo.com>
Wed, 28 Aug 2024 08:27:20 +0000 (16:27 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 2 Sep 2024 07:09:42 +0000 (10:09 +0300)
commite012316d83bdf52061317cc361ca07c9580883d9
tree4b40efdca2753d0d54d363b7ace0efa987878791
parent2d10b05bcef685572ce8962ecb0936952915d954
RDMA/rdmavt: 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.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Link: https://patch.msgid.link/20240828082720.33231-1-shenlichuan@vivo.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/sw/rdmavt/mr.c