sbus: char: Remove meaningless jump label out_free
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Fri, 11 Sep 2020 07:13:41 +0000 (15:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 00:04:49 +0000 (17:04 -0700)
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.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/display7seg.c

index fad936e..00e72b9 100644 (file)
@@ -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 @@ out:
 
 out_iounmap:
        of_iounmap(&op->resource[0], p->regs, sizeof(u8));
-
-out_free:
        goto out;
 }