]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hfi1: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 1 Sep 2022 07:42:09 +0000 (07:42 +0000)
committerLeon Romanovsky <leon@kernel.org>
Mon, 5 Sep 2022 12:14:31 +0000 (15:14 +0300)
commit5b5d2a9bc00fbab7ccdc979a2ee453c9e1456f45
tree3d0f7cf45c319c2e3483c36ad34f067315f5c64b
parent6391dfaf66b1582cc02edb12997baa04774207fc
RDMA/hfi1: Remove the unneeded result variable

Return the value set_link_state() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220901074209.313004-1-ye.xingchen@zte.com.cn
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hfi1/verbs.c