[PATCH] regulator: dbx500: Remove unused debugfs goto label
From: Fabio Estevam
Date: Fri Aug 21 2020 - 10:24:45 EST
The following build warning is seen after commit 8bdaa43808b7 ("regulator:
dbx500: no need to check return value of debugfs_create functions"):
drivers/regulator/dbx500-prcmu.c:144:1: warning: label 'exit_no_debugfs' defined but not used [-Wunused-label]
Reported-by: Olof's autobuilder <build@xxxxxxxxx>
Remove the unused label and its associated error message.
Signed-off-by: Fabio Estevam <festevam@xxxxxxxxx>
---
drivers/regulator/dbx500-prcmu.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c
index 7395ad2105ab..8b70bfe88019 100644
--- a/drivers/regulator/dbx500-prcmu.c
+++ b/drivers/regulator/dbx500-prcmu.c
@@ -141,8 +141,6 @@ ux500_regulator_debug_init(struct platform_device *pdev,
kfree(rdebug.state_before_suspend);
exit_destroy_power_state:
debugfs_remove_recursive(rdebug.dir);
-exit_no_debugfs:
- dev_err(&pdev->dev, "failed to create debugfs entries.\n");
return -ENOMEM;
}
--
2.17.1