diff options
| author | Colin Ian King <[email protected]> | 2021-02-18 20:28:37 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-23 14:56:50 +0100 |
| commit | 6b72cf128282a4c2191fc2278ba5010c85b51fb6 (patch) | |
| tree | ada29bc90f13b1c0bc3c3f949621db8f89ffc11d /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 2c137388d685e11cf621b56bf06c4f3a1a8ff7be (diff) | |
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 <[email protected]>
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions