Re: [PATCH linux-next] RDMA/hfi1: Remove the unneeded result variable

From: Leon Romanovsky
Date: Mon Sep 05 2022 - 08:15:07 EST


On Thu, Sep 01, 2022 at 07:42:09AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: ye xingchen <ye.xingchen@xxxxxxxxxx>
>
> Return the value set_link_state() directly instead of storing it in
> another redundant variable.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: ye xingchen <ye.xingchen@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/hfi1/verbs.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>

Thanks, applied.