Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3221363rwe; Mon, 29 Aug 2022 07:52:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR62vVrVwS2x04Eo/Q9r4E3OS1oKBovLuhyE9VqNVD8ePpZmWeO/jROoXVqQ6HUOEQR55RMf X-Received: by 2002:a17:907:6e0b:b0:73d:5850:ca15 with SMTP id sd11-20020a1709076e0b00b0073d5850ca15mr14074288ejc.344.1661784739466; Mon, 29 Aug 2022 07:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661784739; cv=none; d=google.com; s=arc-20160816; b=OTgKaIl1cKfTTzuxfF8nvg+aQemP3I/62u4MK1YNN/K2VmJDkAJxba/YGAJZo8oQHZ 4i1KK5455RO6Tr9Z3FmiyV8/fPHSW4cMfovFKdJvP9cA2YukZx6d16Nit//7wOxjtw2D J9JOMBD8vhHXDiEDLgIaTsDdZxASyq1sNq9KeS6sF7+BWn4mjIwzSvKzcRHUKGSYjyif XfSUzNjF0Y02tXCnp/RvQoB+iX+QRvGp5m29CU6zGLocIegd/wHztR4ao7XwoGUZNA+R vVi4RtNdoRdDrIuEUJCAAb05JTeajK7WNOumrwB0twuRIhPHyQTrVXHO8lnMSu9cnhwS M/FQ== 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=TRyO1aCCvfxB7Yz++h3DCxRSFUW33NSGEuf51y2WQB0=; b=zDbw+dIQGKS0kVQ165PHszxIPLj+9JCr1uQxNFLxEJbj35iVIyZyFdqukNu7vPnzPk ZrB76oLU9MOLfCJKFbBHM9YkPeWmCwhMlZd/FF6kNCYPp9YgwOG6YorLQv8d2P2NKJYi nXEqVTIyqT9IC3uZlblJ/ZJtf/vjQKrCAZObjzIHDwLPXp33qxhyitvqUPjh6Tmww10G dtlke9HNWAeySbImKTnqTz8W2EJLAWKGbvFNvvMS51Gh+2nmkhaMXjjv+ufgaXYUlny3 oYGEQGrfsNwmKTUPy9kXotO9brymPkGQXnKPSU7dy0pQAKhejqtOV8xOfN7rZUUps6rH r/wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N5yb8Z85; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a056402520600b00446190ccceesi7015157edd.10.2022.08.29.07.51.54; Mon, 29 Aug 2022 07:52:19 -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=@intel.com header.s=Intel header.b=N5yb8Z85; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbiH2O0k (ORCPT + 99 others); Mon, 29 Aug 2022 10:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiH2O0i (ORCPT ); Mon, 29 Aug 2022 10:26:38 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D2D68000C; Mon, 29 Aug 2022 07:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661783197; x=1693319197; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FyvJKZ/FWxFaZvEWDEmNEu+M3JS/Cae8gERyT2MCqIY=; b=N5yb8Z85DEF0u3951mrfp5fvjPOAECwfjaN+J0VuS2gJ3Xo52tmIxGMz mSBC8u1Gsly5LIm5b0QJQsdv5R5h4kCSHJ2nV3ABJ5WP3IODIFCreQ/2n jEaD6zhdTHbjp2ZuVcWJ8GjFx5bmzf+f6rEQPa2b8c/GuEMnSdqllsXaz WZ6Hk86gEf4qgzgEvkN2cRBY73/EgQomwgn0VVjg/6RTJ3viBNKGQKN25 1/9GcdG2Mz1SiPACloIuLFn3IHAq9z1hyquEaWuuhIQEoojBlpTGK6ech DDGH8Zux2TQrFdqO8DOphMKOf6NbffZDvdloCRIGepVijZJMCu1EWOxn1 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="358868116" X-IronPort-AV: E=Sophos;i="5.93,272,1654585200"; d="scan'208";a="358868116" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 07:24:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,272,1654585200"; d="scan'208";a="753644690" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 29 Aug 2022 07:24:14 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 29 Aug 2022 17:24:13 +0300 Date: Mon, 29 Aug 2022 17:24:13 +0300 From: Heikki Krogerus To: cgel.zte@gmail.com Cc: linux@roeck-us.net, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, xupanda , Zeal Robot Subject: Re: [PATCH linux-next v3] usb: typec: tcpm: tcpci: Remove the unneeded result variable Message-ID: References: <20220829030442.264695-1-xu.panda@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829030442.264695-1-xu.panda@zte.com.cn> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Hi, On Mon, Aug 29, 2022 at 03:04:43AM +0000, cgel.zte@gmail.com wrote: > From: xupanda I think that's a pseudonym. Is the name "Xu Panda" (so not "xupanda")? Please use full real names. > Return the value regmap_update_bits() directly instead of > storing it in another redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: xupanda I just realised that this is version 3, and this is the third time you are being asked to check that. You really have to use full real names here. Please read this section completely and fix those lines: https://docs.kernel.org/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin thanks, > --- > chang for v3 > - re-align continuation line alignment > --- > drivers/usb/typec/tcpm/tcpci.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/typec/tcpm/tcpci.c b/drivers/usb/typec/tcpm/tcpci.c > index b2bfcebe218f..cd243530264b 100644 > --- a/drivers/usb/typec/tcpm/tcpci.c > +++ b/drivers/usb/typec/tcpm/tcpci.c > @@ -328,11 +328,9 @@ static int tcpci_set_vconn(struct tcpc_dev *tcpc, bool enable) > static int tcpci_enable_auto_vbus_discharge(struct tcpc_dev *dev, bool enable) > { > struct tcpci *tcpci = tcpc_to_tcpci(dev); > - int ret; > > - ret = regmap_update_bits(tcpci->regmap, TCPC_POWER_CTRL, TCPC_POWER_CTRL_AUTO_DISCHARGE, > - enable ? TCPC_POWER_CTRL_AUTO_DISCHARGE : 0); > - return ret; > + return regmap_update_bits(tcpci->regmap, TCPC_POWER_CTRL, TCPC_POWER_CTRL_AUTO_DISCHARGE, > + enable ? TCPC_POWER_CTRL_AUTO_DISCHARGE : 0); > } > > static int tcpci_set_auto_vbus_discharge_threshold(struct tcpc_dev *dev, enum typec_pwr_opmode mode, > -- > 2.25.1 -- heikki