Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1710350imm; Thu, 20 Sep 2018 01:24:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY5fZph/svtW4BpGxpO/8+cOlKTDOjNQYz6oK6KpkVzh73wpVRnvXJ9ge2t7xa7rwFSM4G0 X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr38832798plb.58.1537431881636; Thu, 20 Sep 2018 01:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537431881; cv=none; d=google.com; s=arc-20160816; b=NG5zVsPgrUTw100ZnbXwq8QWJ15RWfL4nyTomjtpzzqYc0twtAdTuRAkhMM6Qgg80z DK06ZQqXDB9qlHZTGbZxw+g65BeqOftdl0X0i+26kp5s9bofht5m3t/8pY68gbm63f/e RtB/PLJ0NS7A0cCliLRqnO51ntU5Sg3SxLj8giEwJ4BX42tHLPGje4I5xrLsjziA/175 JPsgKq9PrD5/dfr+kYBxMKJ1FMgxjq9MYCnA3elzBuKUGUGbFw8ekVX+jlbaV9pC+G5w Y3++FC81Qsr+kNJfacUqIfjJhqVtBx3U3i7mN4KR6nieR/RzG6vJRLmikyb4erfqSokp GLJw== 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=G4ELCdyRqd8nzsnNPLBAfkbh18SlwVsxFNvictjExl6tW63DrNGaNdojvcBx5mP9Tw TjbPynNYKoq6a6Xrw/psePQ5LruunPbtQeLHz9z3JRm8d1+tbw3cn4TGVU1kaJKvR3cs sLE5hBe8v9Xa8ZfiasYxAaQgLxcTy/X1PxmOczkjzeIwwXJv/6pPzkE2amIQrJrC0a31 4maW9k2UUi6lDAkvRdbRcW8eTijmdL6VpwRYRrDg0t0E1qqLhhUPWySFexxcQt1DXb6p 0Qo4r7B0qff/MllhNlOtLIryiyWUWpcrqdz7T65uySkF6CVB0qpEMC8ui+VNPGPOJLcF b0VA== 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 f65-v6si22374134pgc.20.2018.09.20.01.23.56; Thu, 20 Sep 2018 01:24:41 -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 S1731703AbeITOFx (ORCPT + 99 others); Thu, 20 Sep 2018 10:05:53 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52940 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726383AbeITOFx (ORCPT ); Thu, 20 Sep 2018 10:05:53 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6EDC031D931A; Thu, 20 Sep 2018 16:23:33 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 16:23:32 +0800 From: zhong jiang To: CC: , , Subject: [PATCH] hwmon: remove redundant continue Date: Thu, 20 Sep 2018 16:11:10 +0800 Message-ID: <1537431070-38261-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