diff mbox series

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

Message ID 20220124152624.11004-1-michaelsh@nvidia.com (mailing list archive)
State Accepted
Headers show
Series : hwmon: powr1220: Fix warning found by kernel test robot | expand

Commit Message

Michael Shych Jan. 24, 2022, 3:26 p.m. UTC
Add missing break in case statement.

Fixes: 19d8ebde2889 ("hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Michael Shych <michaelsh@nvidia.com>
---
 drivers/hwmon/powr1220.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Guenter Roeck Jan. 24, 2022, 4:24 p.m. UTC | #1
On Mon, Jan 24, 2022 at 05:26:24PM +0200, Michael Shych wrote:
> Add missing break in case statement.
> 
> Fixes: 19d8ebde2889 ("hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Michael Shych <michaelsh@nvidia.com>

Squashed into the patch introducing the problem.

Thanks,
Guenter

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

Patch

diff --git a/drivers/hwmon/powr1220.c b/drivers/hwmon/powr1220.c
index 6fa4ddbc1a41..f77dc6db31ac 100644
--- a/drivers/hwmon/powr1220.c
+++ b/drivers/hwmon/powr1220.c
@@ -189,7 +189,7 @@  powr1220_is_visible(const void *data, enum hwmon_sensor_types type, u32
 		default:
 			break;
 		}
-
+		break;
 	default:
 		break;
 	}