All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] regulator: lp87565: fix missing break in switch statement
@ 2019-06-27 13:16 ` Colin King
  0 siblings, 0 replies; 18+ messages in thread
From: Colin King @ 2019-06-27 13:16 UTC (permalink / raw)
  To: Keerthy, Liam Girdwood, Mark Brown, Lee Jones
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a
break statement, causing it to fall through to a dev_err message.
Fix this by adding in the missing break statement.

Addresses-Coverity: ("Missing break in switch")
Fixes: 7ee63bd74750 ("regulator: lp87565: Add 4-phase lp87561 regulator support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/regulator/lp87565-regulator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c
index 993c11702083..5d067f7c2116 100644
--- a/drivers/regulator/lp87565-regulator.c
+++ b/drivers/regulator/lp87565-regulator.c
@@ -180,6 +180,7 @@ static int lp87565_regulator_probe(struct platform_device *pdev)
 	case LP87565_DEVICE_TYPE_LP87561_Q1:
 		min_idx = LP87565_BUCK_3210;
 		max_idx = LP87565_BUCK_3210;
+		break;
 	default:
 		dev_err(lp87565->dev, "Invalid lp config %d\n",
 			lp87565->dev_type);
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-07-02 12:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-27 13:16 [PATCH][next] regulator: lp87565: fix missing break in switch statement Colin King
2019-06-27 13:16 ` Colin King
2019-06-28  3:28 ` Keerthy
2019-06-28  3:40   ` Keerthy
2019-06-28 14:36 ` Mark Brown
2019-06-28 14:36   ` Mark Brown
2019-06-28 21:18   ` Colin Ian King
2019-06-28 21:18     ` Colin Ian King
2019-07-02 10:44     ` Lee Jones
2019-07-02 10:44       ` Lee Jones
2019-07-02 11:12       ` Colin Ian King
2019-07-02 11:12         ` Colin Ian King
2019-07-02 11:31         ` Lee Jones
2019-07-02 11:31           ` Lee Jones
2019-07-02 11:36           ` Keerthy
2019-07-02 11:48             ` Keerthy
2019-07-02 12:24         ` Mark Brown
2019-07-02 12:24           ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.