commit | 03b93f08f8d0579a8bac4d9ab7792893e983f213 | [log] [tgz] |
---|---|---|
author | Benjamin Romer <benjamin.romer@unisys.com> | Tue Feb 23 10:01:54 2016 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Feb 25 22:40:52 2016 -0800 |
tree | a1bb1379165e3e6c6ec9ac497e980e3657d5470e | |
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 <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>