regulator: dbx500: Remove unused debugfs goto label
authorFabio Estevam <festevam@gmail.com>
Fri, 21 Aug 2020 14:48:23 +0000 (11:48 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2020 16:38:49 +0000 (17:38 +0100)
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]

Remove the unused label and its associated error message.

Fixes: 8bdaa43808b7 ("regulator: dbx500: no need to check return value of debugfs_create functions")
Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20200821144823.13404-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/dbx500-prcmu.c

index 7395ad2..8b70bfe 100644 (file)
@@ -141,8 +141,6 @@ exit_free:
        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;
 }