Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp77553imm; Thu, 20 Sep 2018 18:42:52 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda9Hl5AmcedzbBglgcRVffYFN78f0cZq3fzoxo95GB5/Ckv2dlgdtzxXahtcSLMrtiuav3Z X-Received: by 2002:a62:4e56:: with SMTP id c83-v6mr44374797pfb.240.1537494172043; Thu, 20 Sep 2018 18:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537494172; cv=none; d=google.com; s=arc-20160816; b=vDp+LXFykT31YdSnszuCHQaSUCzJD7mWNqlfqF8gGTXo1rny6379AXufjnWmGFSSKM UNJ4dUq0F0SQL7jGrGwmCfzj8sCNeFFZXfFM/Ua5xhv64apNiS9x43nFazCQFreR/643 1V1U7ZVweP1dNc2JQyPuRr/ERf9SqsTLqIJZLlO7k7WTX24kExO0fP2Ny6iwOPk8V2IQ 9U/HBjmuw1HWC2c7ol/iG/A8W6C0KksDfQZkBRRz/EXHOBwSWtfLkodhMWwMqaiWUIGT IZUQPLs/DPxbqCQBBWxeis/SxIEY4wb5855z59vEm+GnhYoMtIahZexnbt5H6u5DoAhx CojQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=riwzR5qqkU+Q4I5q4DenJw+TzB9CB8BjJJp+mlUjHgg=; b=L5Y2ezzXtBJiT8Mxr78W0fKIlHu0B8GbuildV59oJCUv4rcCL709FDOSh5ECIVlpZu R63KyMTYVQ7tOE6efuHtCXYrIlYCsU7eauu4CEY7YY5SCZaSClJtF+VQa9zPpTelcTdP dvE6MzxviB/W5+9Y0Q7Pfkveb1c6MuSELsyx0uGEDo/W6vzCQCjGjoo6/y4NjfBtwqXM 8NIN6JXB0jbOYUp7kMDsKklQuKSDsGHSN6+AZE80Q/V5Vf9vGe5W+RQxq2+OQ8RAna+A H5hRzLXg2dxydGeOC/fClrvY931/P6JQPTQYhPqyuhszk+HxJCYlSsBzr3e2+k3ulrsA iB1Q== 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 r194-v6si29219574pfr.100.2018.09.20.18.42.36; Thu, 20 Sep 2018 18:42:52 -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 S2388940AbeIUH2y (ORCPT + 99 others); Fri, 21 Sep 2018 03:28:54 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12664 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388299AbeIUH2y (ORCPT ); Fri, 21 Sep 2018 03:28:54 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6F0071FFBACB; Fri, 21 Sep 2018 09:42:28 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.399.0; Fri, 21 Sep 2018 09:42:25 +0800 From: zhong jiang To: CC: , , Subject: [PATCHv2] hwmon: scpi-hwmon: remove redundant continue Date: Fri, 21 Sep 2018 09:30:03 +0800 Message-ID: <1537493403-15745-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The continue will not truely skip any code. hence it is safe to remove it. Signed-off-by: zhong jiang --- 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