diff options
| author | Benjamin Romer <[email protected]> | 2016-02-23 10:01:54 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-02-25 22:40:52 -0800 |
| commit | 03b93f08f8d0579a8bac4d9ab7792893e983f213 (patch) | |
| tree | a1bb1379165e3e6c6ec9ac497e980e3657d5470e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 7a9749be2f7e8791e845fcf59dbf90ee0612b1dc (diff) | |
staging: unisys: clean up initiate_chipset_device_pause_resume()
Simplify this function by removing the goto in favor of handling errors
immediately. Eliminate the vaguely-named variable x, and remove the
unneeded initialization of rc. Lastly, provide meaningful error values
to the callback function instead of just passing back a -1 for failure.
Signed-off-by: Benjamin Romer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions