mirror of
https://github.com/torvalds/linux.git
synced 2026-08-09 00:45:33 +02:00
's3_wmi.input' is a managed resource, so there should be no need to free it
explicitly.
Moreover, 's3_wmi' is a global variable. 's3_wmi.input' should be NULL
when this error handling path is executed, because it has not been
assigned yet.
All this is puzzling. So simplify it and remove a few lines of code to have
it be more straightforward.
Fixes:
|
||
|---|---|---|
| .. | ||
| aggregator | ||
| Kconfig | ||
| Makefile | ||
| surface_acpi_notify.c | ||
| surface_aggregator_cdev.c | ||
| surface_aggregator_registry.c | ||
| surface_dtx.c | ||
| surface_gpe.c | ||
| surface_hotplug.c | ||
| surface_platform_profile.c | ||
| surface3_button.c | ||
| surface3_power.c | ||
| surface3-wmi.c | ||
| surfacepro3_button.c | ||