summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-10-21 12:25:46 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-10-27 02:10:57 +0300
commitfa2a590d0d024eb3a048d817029959bef90bd191 (patch)
tree0f28180df0e8b351768b344ef406607e9decdc5b /drivers/platform
parentba367730ffe90706e3aaacd6aa4da763f4599bdc (diff)
platform/x86: intel_punit_ipc: Drop useless label
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_punit_ipc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel_punit_ipc.c b/drivers/platform/x86/intel_punit_ipc.c
index fe49a97d64ef..05cced59e251 100644
--- a/drivers/platform/x86/intel_punit_ipc.c
+++ b/drivers/platform/x86/intel_punit_ipc.c
@@ -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)