We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142acc4 commit 3745de7Copy full SHA for 3745de7
drivers/acpi/battery.c
@@ -1207,7 +1207,7 @@ static int acpi_battery_update_retry(struct acpi_battery *battery)
1207
static int acpi_battery_add(struct acpi_device *device)
1208
{
1209
int result = 0;
1210
- struct acpi_battery *battery = NULL;
+ struct acpi_battery *battery;
1211
1212
if (!device)
1213
return -EINVAL;
@@ -1260,7 +1260,7 @@ static int acpi_battery_add(struct acpi_device *device)
1260
1261
static void acpi_battery_remove(struct acpi_device *device)
1262
1263
1264
1265
if (!device || !acpi_driver_data(device))
1266
return;
0 commit comments