diff mbox series

[PATCHv2] hwmon: scpi-hwmon: remove redundant continue

Message ID 1537493403-15745-1-git-send-email-zhongjiang@huawei.com (mailing list archive)
State Accepted
Headers show
Series [PATCHv2] hwmon: scpi-hwmon: remove redundant continue | expand

Commit Message

zhong jiang Sept. 21, 2018, 1:30 a.m. UTC
The continue will not truely skip any code. hence it is safe to
remove it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 drivers/hwmon/scpi-hwmon.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Guenter Roeck Sept. 21, 2018, 1:19 p.m. UTC | #1
On Fri, Sep 21, 2018 at 09:30:03AM +0800, zhong jiang wrote:
> The continue will not truely skip any code. hence it is safe to
> remove it.
> 
> Signed-off-by: zhong jiang <zhongjiang@huawei.com>

Applied to hwmon-next.

Thanks,
Guenter
diff mbox series

Patch

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;