]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: clean up initiate_chipset_device_pause_resume()
authorBenjamin Romer <benjamin.romer@unisys.com>
Tue, 23 Feb 2016 15:01:54 +0000 (10:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:40:52 +0000 (22:40 -0800)
commit89e3c0012c04eaae4bfae7b92cf784a196dedef9
treea1bb1379165e3e6c6ec9ac497e980e3657d5470e
parentcdd6268ac2c93dca023f9f2c3ceaef01c96567a6
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>
drivers/staging/unisys/visorbus/visorbus_main.c