Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2283499imm; Thu, 20 Sep 2018 10:32:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaSh0F8ArXLROie4IGm64m9QzG7HgatGlY2/a8ZRqfuIxQdXk/JOl6EL0Rg7KUn/z1cDscd X-Received: by 2002:a63:f54c:: with SMTP id e12-v6mr37993286pgk.286.1537464754554; Thu, 20 Sep 2018 10:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537464754; cv=none; d=google.com; s=arc-20160816; b=fdsdhuFJFkVJs2qdYjdqjIAetDc53KLqMJSD7443ta/U7fOAFWDdgjldZrzHBmtktg 7rdyerfCb27GoNwwbwaok/CYHHOZ5UaBUWxAlCmKmMxio6rZZLzWgp4ONCN2u7EVRDhH asQiNAzbKClZz7gOuOTgDKMPYeCUI81SThjPb1EfZwzvAXrbBTRtS0MPP1dymLXd+uRM YHu/kjeUl7OmVQ7NDRE2qtLHa5Uf1uFiOQ5pKUl4G0Y4zxbazErizp1YyO4UCWQYvdSM jVEHfrnJoORkymtT/zMMGtc953l2ihbtJJu8elD4tUAzBp+yplMJsJghRkzArtOSdqtp ktPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dIOyyyyoiuNeg4o0XmSQB5T/tVW51+2s2SifPkFVg6w=; b=vG3Y/R29VJYmPFL1wyMIoTwRlF+SsfZY2T9MbtS9SPEJ2iAcsD/Y+36Z3N3GksGLMT xkoPXodV/nFHG2cGaF1RdFQ/swXJHYriHZIhFrIMyNUvc60zngOK4JAy4j3hdcD7EhWG PpriGeZEXISP0vGWu7Lgt+1/CJ59EXGgMaOh9NEugAxXXE0GgtQLOXkDp+Z8eZLdGwjw l+U8tpWCWzV0Zew+VFXIkZb7iNx+QIikSaznnEWpMIGmJlshpaY7gkorKbU97yp/6J+t mLhhoROqJC+zIIvoVr4AxGEt6yZrFG5c6IQqaVs7JTa0HYzcaSZYlWn3VHosBNHFvsGR m15Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Tl4QdBgg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e186-v6si25172049pfc.176.2018.09.20.10.32.14; Thu, 20 Sep 2018 10:32:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Tl4QdBgg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731253AbeITXPU (ORCPT + 99 others); Thu, 20 Sep 2018 19:15:20 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44370 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727171AbeITXPU (ORCPT ); Thu, 20 Sep 2018 19:15:20 -0400 Received: by mail-pf1-f195.google.com with SMTP id k21-v6so4685207pff.11; Thu, 20 Sep 2018 10:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dIOyyyyoiuNeg4o0XmSQB5T/tVW51+2s2SifPkFVg6w=; b=Tl4QdBgg2wWfh8TejpGFSe/q26Xir32TS73QuLFxTXZeRrdzK5QOIJdt85j0cRMbzz zv9fljbQyk0dJnfeknNSh3QaQKcPQYNsgufZXSeSQlEVIIfTJ3yeUNN62g6MbWFiODtj VclIaohLN6u95rx3qzLu7+G5p4WJ9PvaCcne67mHJ7Z5i9EDFyMS1a0eZziSOJ9ffu5M XRKIrSRhNLneJIe3ngKdWRSF86KFZugNAD84oatzOrCR3MFyzAklQSpcrp1/nJEA0ZN+ 3ad6bFxMJ2f1hB7vsKbVJKxqVfCc1r2TYlvDNWuZDqZxnGK0SZv/Z3T9igEQ984ycDLN fx5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=dIOyyyyoiuNeg4o0XmSQB5T/tVW51+2s2SifPkFVg6w=; b=fMVA8kqZzn7ud6UxGsnTFB8lAsnV+2WU6YlBRE1hTCvy30TGrQx3Ya0U/zB9qxvmgl roFnptReClGjms74B1QFzwsEP8SLV+TbFfmtnK1j7eBn9CDn9QNg6d8euJCt0oSvUps5 zJc4aFoLmIAMAXpqarL4DziokkP9eg7WEoRlTUwGgY2VHYT8itLgisaoRXt9OKsZ/v1C wd6nriQLx6FxE+Pky2NyHliKkvPyZGCx4G0wQPQN2CYrMUbPMprp79CN8Be51OQ8ANto 71HFD/8smqTvlZSCkS56HL3iX0dP4ATpctPL1KQVuD4iqLQ1ItvBpY7nXROe4I58dY7v pYXQ== X-Gm-Message-State: APzg51AS+QVStu3YYxssLwz1OSi2UnFn+EU95vGNAXD/f+4achhiDH6z e2J2tbHzrRSMe6UmDKl56t0= X-Received: by 2002:a62:ce82:: with SMTP id y124-v6mr9982239pfg.140.1537464647849; Thu, 20 Sep 2018 10:30:47 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id u11-v6sm11771291pgj.71.2018.09.20.10.30.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:30:46 -0700 (PDT) Date: Thu, 20 Sep 2018 10:30:45 -0700 From: Guenter Roeck To: zhong jiang Cc: jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: remove redundant continue Message-ID: <20180920173045.GA15272@roeck-us.net> References: <1537431070-38261-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1537431070-38261-1-git-send-email-zhongjiang@huawei.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 20, 2018 at 04:11:10PM +0800, zhong jiang wrote: > The continue will not truely skip any code. hence it is safe to > remove it. > > Signed-off-by: zhong jiang The proper subject line would be hwmon: (scpi-hwmon) Since it now happened several times that I got a patch without proper subject (ie where the subject does not even mention the affected driver), I am no longer going to accept patches if the affected driver is missing, sorry. Guenter > --- > drivers/hwmon/scpi-hwmon.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/hwmon/scpi-hwmon.c b/drivers/hwmon/scpi-hwmon.c > index 7e49da5..111d521 100644 > --- a/drivers/hwmon/scpi-hwmon.c > +++ b/drivers/hwmon/scpi-hwmon.c > @@ -286,10 +286,8 @@ static int scpi_hwmon_probe(struct platform_device *pdev) > * any thermal zones or if the thermal subsystem is > * not configured. > */ > - if (IS_ERR(z)) { > + if (IS_ERR(z)) > devm_kfree(dev, zone); > - continue; > - } > } > > return 0; > -- > 1.7.12.4 >