aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/asus-laptop.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index b39d2bb3e75b..8af43e9b6183 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -1240,9 +1240,6 @@ static int asus_hotk_add(struct acpi_device *device)
1240{ 1240{
1241 int result; 1241 int result;
1242 1242
1243 if (!device)
1244 return -EINVAL;
1245
1246 pr_notice("Asus Laptop Support version %s\n", 1243 pr_notice("Asus Laptop Support version %s\n",
1247 ASUS_LAPTOP_VERSION); 1244 ASUS_LAPTOP_VERSION);
1248 1245
@@ -1306,9 +1303,6 @@ end:
1306 1303
1307static int asus_hotk_remove(struct acpi_device *device, int type) 1304static int asus_hotk_remove(struct acpi_device *device, int type)
1308{ 1305{
1309 if (!device || !acpi_driver_data(device))
1310 return -EINVAL;
1311
1312 kfree(hotk->name); 1306 kfree(hotk->name);
1313 kfree(hotk); 1307 kfree(hotk);
1314 1308