diff mbox series

power: remove unneeded break

Message ID 20201019185937.7012-1-trix@redhat.com (mailing list archive)
State Not Applicable, archived
Headers show
Series power: remove unneeded break | expand

Commit Message

Tom Rix Oct. 19, 2020, 6:59 p.m. UTC
From: Tom Rix <trix@redhat.com>

A break is not needed if it is preceded by a goto

Signed-off-by: Tom Rix <trix@redhat.com>
---
 drivers/power/supply/wm831x_power.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Charles Keepax Oct. 26, 2020, 10:20 a.m. UTC | #1
On Mon, Oct 19, 2020 at 11:59:37AM -0700, trix@redhat.com wrote:
> From: Tom Rix <trix@redhat.com>
> 
> A break is not needed if it is preceded by a goto
> 
> Signed-off-by: Tom Rix <trix@redhat.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles
diff mbox series

Patch

diff --git a/drivers/power/supply/wm831x_power.c b/drivers/power/supply/wm831x_power.c
index 18b33f14dfee..4cd2dd870039 100644
--- a/drivers/power/supply/wm831x_power.c
+++ b/drivers/power/supply/wm831x_power.c
@@ -668,7 +668,6 @@  static int wm831x_power_probe(struct platform_device *pdev)
 		fallthrough;
 	case -EPROBE_DEFER:
 		goto err_bat_irq;
-		break;
 	}
 
 	return ret;