diff options
| author | Matthias Fetzer <[email protected]> | 2024-09-03 17:27:56 +0000 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2024-09-04 18:30:31 +0000 |
| commit | 3a1fb526c2482b2f61c9813e9e14fcdab4ffa390 (patch) | |
| tree | 112280cbe655c559f3805a819ef038a930440071 /drivers/platform/surface/aggregator/controller.c | |
| parent | platform/x86: x86-android-tablets: Fix spelling in the comments (diff) | |
| download | kernel-3a1fb526c2482b2f61c9813e9e14fcdab4ffa390.tar.gz kernel-3a1fb526c2482b2f61c9813e9e14fcdab4ffa390.zip | |
platform/x86: thinkpad_acpi: Fix uninitialized symbol 's' warning
When the TPACPI_FAN_WR_ACPI_FANW branch is taken s stays uninitialized
and would be later used in a debug print.
Since the registers are always set to the same two static values inside the
branch s is initialized to 0.
Fixes: 57d0557dfa49 ("platform/x86: thinkpad_acpi: Add Thinkpad Edge E531 fan support")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/platform-driver-x86/[email protected]/
Signed-off-by: Matthias Fetzer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions
