mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
34fc683485
'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 | ||
surface3_button.c | ||
surface3_power.c | ||
surface3-wmi.c | ||
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 | ||
surfacepro3_button.c |