Skip to contentSkip to conversation

sbus: char: Remove meaningless jump label out_free

PATCH Applied Jing Xiangfeng 2 participants 2 messages Sep 11, 2020 – Sep 15, 2020 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sbus: char: Remove meaningless jump label out_free

After commit 57a4a3d7f756 ("display7seg: Introduce the use of the managed version of kzalloc"), The out_free jump label has nothing to do but goto out. So remove it.

---
 drivers/sbus/char/display7seg.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/sbus/char/display7seg.c +1 -3
index fad936eb845f..00e72b97d0b6 100644
@@ -186,7 +186,7 @@ static int d7s_probe(struct platform_device *op)
 	p->regs = of_ioremap(&op->resource[0], 0, sizeof(u8), "d7s");
 	if (!p->regs) {
 		printk(KERN_ERR PFX "Cannot map chip registers\n");
-		goto out_free;
+		goto out;
 	}
 
 	err = misc_register(&d7s_miscdev);
@@ -228,8 +228,6 @@ static int d7s_probe(struct platform_device *op)
 
 out_iounmap:
 	of_iounmap(&op->resource[0], p->regs, sizeof(u8));
-
-out_free:
 	goto out;
 }
 
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

From: Jing Xiangfeng <[email protected]>
Date: Fri, 11 Sep 2020 15:13:41 +0800

Quoted 5 lines

After commit 57a4a3d7f756 ("display7seg: Introduce the use of the managed version of kzalloc"), The out_free jump label has nothing to do but goto out. So remove it.

Applied, thank you.