diff options
author | Colin Ian King <[email protected]> | 2021-06-09 18:33:12 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2021-06-10 15:13:26 +0200 |
commit | 23db673d7e5194c8fbbb8c307e23960767305c09 (patch) | |
tree | bbc2608e415fb19567060e2563160fc6c13bf707 /lib/mpi/mpi-sub-ui.c | |
parent | b83e2b306736cb0d108df791fd4ee39f6d52184f (diff) |
ACPI: scan: initialize local variable to avoid garbage being returned
In the unlikely event that there are no callback calls made in
acpi_walk_dep_device_list(), local variable ret will be returned as
an uninitialized value.
Clean up static analysis warnings by ensuring ret is initialized.
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: a9e10e587304 ("ACPI: scan: Extend acpi_walk_dep_device_list()")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Daniel Scally <[email protected]>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions