summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-09 18:33:12 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-06-10 15:13:26 +0200
commit23db673d7e5194c8fbbb8c307e23960767305c09 (patch)
treebbc2608e415fb19567060e2563160fc6c13bf707 /drivers/platform
parentb83e2b306736cb0d108df791fd4ee39f6d52184f (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 <colin.king@canonical.com> Reviewed-by: Daniel Scally <djrscally@gmail.com> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions