Skip to contentSkip to conversation

: hwmon: powr1220: Fix warning found by kernel test robot

PATCH Michael Shych 2 participants 2 messages Jan 24, 2022 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

Add missing break in case statement.

Fixes 19d8ebde2889 ("hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure")
---
 drivers/hwmon/powr1220.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/powr1220.c +1 -1
index 6fa4ddbc1a41..f77dc6db31ac 100644
@@ -189,7 +189,7 @@ powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32
 		default:
 			break;
 		}
-
+		break;
 	default:
 		break;
 	}
Signature · 1 line
2.14.1
maintainer
#1 lore raw
Quoted 5 lines · Michael Shych

Add missing break in case statement.

Fixes 19d8ebde2889 ("hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure")

Squashed into the patch introducing the problem.

Thanks,
Guenter

Quoted 17 lines
---
 drivers/hwmon/powr1220.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/powr1220.c +1 -1
index 6fa4ddbc1a41..f77dc6db31ac 100644
@@ -189,7 +189,7 @@ powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32
 		default:
 			break;
 		}
-
+		break;
 	default:
 		break;
 	}