Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp75048imm; Thu, 20 Sep 2018 18:39:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZFxb0LLLlbSpzd+eF62R066jTSixbnGxIGCvueD5oe6ZOvMmgIhax0j0TbqOSRYr6mWZ9M X-Received: by 2002:a17:902:848d:: with SMTP id c13-v6mr35707147plo.194.1537493944740; Thu, 20 Sep 2018 18:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537493944; cv=none; d=google.com; s=arc-20160816; b=IPEqSlhjllZJcv/ixZsQzxJypH7nMzCgXxRvJpWWqvn4kWu6Cos8MRXI4zWKkmCKcR IZTVJXgE/3HQ4gMZTkWC5pvpIgeB2zsFAXXlx5iFsCbB2EeSduAeWowKKRU2ABVOX31v H2onetIY6YSarGQccvKYKd4qvsDAbMP97TKEQV0PucVwNkdP1eoA0yvVgF+Xy+J7qTgW b1EXQO1ZOCGHzS7M7nhsrbUWpqmq0TU+8V8nn6bdfBVnHSN0Vnz/nqBTgr35dibSsnBN CMuvE8MNfqdtCLozjcQs42hR/OU1B1iT0zA6W7kKsr0gzNQbJmYNP2DQDUOEvw/yYgV3 OP1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=zs6dH0v6DYnCAA43q2ZdxUBwRIqvJtzuauJn6KlilYQ=; b=vBoplN9ScoYlBrlKFljgqf0XyPEn2nQjLbk7Dx1ISssV2fqInClW8ik2/qHrcpviV8 Niq7ZCpFmYWT+KUrC0r3L0AitQhtLA72nb3j1MtaJBRjKAYzI+Y/j3RNkkECoYUSX0WM zQvFe7lZsSN4C+XWjH9ZFQEC0IEB0MhyD/BtHANxE1OpNMOBwB/tMMNf6DV8zg7+ism3 gHSf5SfjWeeCE0ZQV0fErWaFHYuTjfmjdnC2kpxReCn8B5hqTEKyWb+Spnuo6XwSUHNm OudXD2i8y3N+unvRI5xrHdBo+BPiV4VQ9kTlWBzkNpByFvWbIBRLZC24L5HviVil2zjM jI9A== ARC-Authentication-Results: i=1; mx.google.com; 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 i33-v6si26887081pld.306.2018.09.20.18.38.49; Thu, 20 Sep 2018 18:39:04 -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; 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 S2388909AbeIUHYq (ORCPT + 99 others); Fri, 21 Sep 2018 03:24:46 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56872 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388788AbeIUHYq (ORCPT ); Fri, 21 Sep 2018 03:24:46 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4AD67B30D126C; Fri, 21 Sep 2018 09:38:20 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Fri, 21 Sep 2018 09:38:18 +0800 Message-ID: <5BA44B89.6090006@huawei.com> Date: Fri, 21 Sep 2018 09:38:17 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Guenter Roeck CC: , , Subject: Re: [PATCH] hwmon: remove redundant continue References: <1537431070-38261-1-git-send-email-zhongjiang@huawei.com> <20180920173045.GA15272@roeck-us.net> In-Reply-To: <20180920173045.GA15272@roeck-us.net> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/21 1:30, Guenter Roeck wrote: > 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. I will fix that and resend. Thanks Sincerely, zhong jiang > 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 >> >