Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3027980rwb; Mon, 5 Sep 2022 05:29:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR5OyBB1DMXaVjFUlK984IIM+o6qEG4EeZK1+m/U09XloM+/QNjWpkfQkii06hwz/wJplGla X-Received: by 2002:a05:6402:4414:b0:434:f58c:ee2e with SMTP id y20-20020a056402441400b00434f58cee2emr43113231eda.362.1662380996196; Mon, 05 Sep 2022 05:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662380996; cv=none; d=google.com; s=arc-20160816; b=l+eLshtRhRwmc2kRSkdu+Zfz/9I0MFlv/4NbjwGbMCZx26bFYQ+cd5puQVsTa0KL73 2uouzMqX/wTQEbHUSUJobpKKUnyHvDvWAirp+q9bQgMjDD4HqO7NZMJFJEvlr0QepTVS U2jdLnZv+Ef12N7NxJLJFNwv/KrPLOKPQA5pHcSXEZOfPTQ+lqkL5drtN3XzBLVI+rhO Dwtr9+hF50Jh0UFqJA6CjP9dJ0CWANIBKC+5UhVojVWQgcPt9wXfBUo6Rly0Hl+0WbwI XTQAoOOKWih1CVnXytUwMRSSgcNpV9wP2C9myZhhimNAvSKdd3TFDcjgTryRr33ykzHI NhQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k/6WGaDvGZPkbWQl234RxyUy507+lhrQRw3T0EdyFcg=; b=lbLf6mqv1VZ36m9mWwdBpvHhlETMUIFjsXrLB/frtsp+aTkNelv95N5REpvTcVPsAV 7yHr2d+eT5XA5e28iMsTnZf5wrR1q5g2VgRDKVPAFETF9QO0mGID5Z8QPIXXKDVoujS4 56aPIfJCXUXErmKBLYsKu1mvq1OuJ7IO9etNDv0Lhqze104v0fyUvDvb/3kSJysY2I/4 /uVUbPFmptVorekUPBj3m0uCQogeSf+C4GNW+0jN1kseyDU3ownEJ0VwQuUbGTKrFF0u rncIMkqYAF2gYDLvQcEkLq5iFl6DMvWVE1ewlf02Lh5qG4fmYob6sIcjsVTMSr03gfXt l2GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cs9GOGTJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020aa7c1c5000000b0044e69ba81e1si3080180edp.168.2022.09.05.05.29.30; Mon, 05 Sep 2022 05:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cs9GOGTJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236173AbiIEMPE (ORCPT + 99 others); Mon, 5 Sep 2022 08:15:04 -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> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.