diff options
author | 2021-02-18 20:28:37 +0000 | |
---|---|---|
committer | 2021-03-23 14:56:50 +0100 | |
commit | 6b72cf128282a4c2191fc2278ba5010c85b51fb6 (patch) | |
tree | ada29bc90f13b1c0bc3c3f949621db8f89ffc11d /drivers/base/platform.c | |
parent | firmware_loader: Remove unnecessary conversion to bool (diff) | |
download | linux-rng-6b72cf128282a4c2191fc2278ba5010c85b51fb6.tar.xz linux-rng-6b72cf128282a4c2191fc2278ba5010c85b51fb6.zip |
drivers/base/cpu: remove redundant assignment of variable retval
The variable retval is being initialized with a value that is never read
and it is being updated later with a new value. Clean this up by
initializing retval to -ENOMEM and remove the assignment to retval
on the !dev failure path.
Kudos to Rafael for the improved fix suggestion.
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210218202837.516231-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions