From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35062ECAAD3 for ; Mon, 5 Sep 2022 12:15:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237402AbiIEMPF (ORCPT ); Mon, 5 Sep 2022 08:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237504AbiIEMO6 (ORCPT ); Mon, 5 Sep 2022 08:14:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B333D1AF39; Mon, 5 Sep 2022 05:14:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CA440B8113A; Mon, 5 Sep 2022 12:14:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1390FC433C1; Mon, 5 Sep 2022 12:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662380091; bh=tW3SpXtUlXvQt+4+pMzaSsfQI7keGfnQKWKa4aYCZsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cs9GOGTJt0wCCYS9zoz3N/Wet2WiY5cCGAiL+4Bpv7U0JRbUfUsZ64sGI3UtNTt9v wfQuAnua0RtigxZubG7kuDxKo0WEgOHqD2HXyK92BIvPFaADZ9/5X7zkO2yaoE9sE0 EeIu8Go6hYRkDKHlBB1EewzbOD+whkgc7vLSCS1jhgMqzq3YKaoEWH7h040fxZIMvS 22ZOycHrgRHeH6ofK01sUDsPTaUTxm4yd/JiehE1GDD18yVZiDKA9hAAhQ4wSqtVf6 gOMKBTKbFz8QAmPBbhdBKX/r1FaXmuxZb8B7mL8/t7D/eQrMbQUTqxCBQnfkJPS+sa Jn6Kmo8h561GA== Date: Mon, 5 Sep 2022 15:14:47 +0300 From: Leon Romanovsky To: cgel.zte@gmail.com Cc: jgg@ziepe.ca, dennis.dalessandro@cornelisnetworks.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, ye xingchen , Zeal Robot Subject: Re: [PATCH linux-next] RDMA/hfi1: Remove the unneeded result variable Message-ID: References: <20220901074209.313004-1-ye.xingchen@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901074209.313004-1-ye.xingchen@zte.com.cn> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 01, 2022 at 07:42:09AM +0000, cgel.zte@gmail.com wrote: > From: ye xingchen > > Return the value set_link_state() directly instead of storing it in > another redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: ye xingchen > --- > drivers/infiniband/hw/hfi1/verbs.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Thanks, applied.