]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
platform/x86: intel_punit_ipc: Drop useless label
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2019 09:25:46 +0000 (12:25 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 26 Oct 2019 23:10:57 +0000 (02:10 +0300)
There is no need to have a label to return an error code in one case.
Moreover the other places in the same function do not utilize that label.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_punit_ipc.c

index fe49a97d64ef7e081aab097798405af5d268ff2d..05cced59e251a98bfbf4c58f9f5541726f310184 100644 (file)
@@ -294,14 +294,13 @@ static int intel_punit_ipc_probe(struct platform_device *pdev)
 
        ret = intel_punit_get_bars(pdev);
        if (ret)
-               goto out;
+               return ret;
 
        punit_ipcdev->dev = &pdev->dev;
        mutex_init(&punit_ipcdev->lock);
        init_completion(&punit_ipcdev->cmd_complete);
 
-out:
-       return ret;
+       return 0;
 }
 
 static int intel_punit_ipc_remove(struct platform_device *pdev)