summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorGiedrius Statkevičius <giedrius.statkevicius@gmail.com>2015-08-23 13:41:09 +0200
committerDarren Hart <dvhart@linux.intel.com>2015-08-26 08:34:15 +0200
commitfc0bfacd045a17e385b4272dfe2387ba3a6d8745 (patch)
tree5e9946911623a99bfc715ce064b3f7ebc585efbb /drivers/platform
parentideapad-laptop: add alternative representation for Yoga 2 to DMI table (diff)
downloadlinux-fc0bfacd045a17e385b4272dfe2387ba3a6d8745.tar.xz
linux-fc0bfacd045a17e385b4272dfe2387ba3a6d8745.zip
hp-wireless: remove unneeded goto/label in hpwl_init
acpi_bus_register_driver() already returns an appropriate value (0 on success, and some negative value on error) to be used in __init functions so the goto/label is redundant in hpwl_init thus remove it and directly return the value Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/hp-wireless.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/platform/x86/hp-wireless.c b/drivers/platform/x86/hp-wireless.c
index 4e4cc8bd7557..988eedbd7c63 100644
--- a/drivers/platform/x86/hp-wireless.c
+++ b/drivers/platform/x86/hp-wireless.c
@@ -114,14 +114,9 @@ static int __init hpwl_init(void)
pr_info("Initializing HPQ6001 module\n");
err = acpi_bus_register_driver(&hpwl_driver);
- if (err) {
+ if (err)
pr_err("Unable to register HP wireless control driver.\n");
- goto error_acpi_register;
- }
-
- return 0;
-error_acpi_register:
return err;
}