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)
commite58f889e293e6bd13ae2b48208a4d0d15592bf5a
tree3d0f7cf45c319c2e3483c36ad34f067315f5c64b
parentd324a46be33ed0c1730ed8194345fce83eeba0e8
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