projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0599682
)
hwmon: (scpi-hwmon) remove redundant continue
author
zhong jiang
<zhongjiang@huawei.com>
Fri, 21 Sep 2018 01:30:03 +0000
(09:30 +0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000
(20:37 -0700)
The continue will not truely skip any code. hence it is safe to
remove it.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/scpi-hwmon.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/scpi-hwmon.c
b/drivers/hwmon/scpi-hwmon.c
index
7e49da5
..
111d521
100644
(file)
--- 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;