Skip to content

Commit

Permalink
sbus: char: Remove meaningless jump label out_free
Browse files Browse the repository at this point in the history
After commit 57a4a3d ("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.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jing Xiangfeng authored and David S. Miller committed Sep 15, 2020
1 parent b6b9b67 commit bf8c554
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/sbus/char/display7seg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit bf8c554

Please sign in to comment.