staging: unisys: cleanup rc -1 in create_visor_device()
authorBenjamin Romer <benjamin.romer@unisys.com>
Tue, 23 Feb 2016 17:44:16 +0000 (12:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:40:52 +0000 (22:40 -0800)
commitf99d3308c5490c3bf72a7d4929bb76443daa2097
tree7d5a04db322f1a5817c8a551eb51b096bad15543
parentf748f64f0605f5a236aee103b75ec48075d2c4fa
staging: unisys: cleanup rc -1 in create_visor_device()

Get rid of the rc = -1 initialization. Return a meaningful error on
failure in the function, or, the rc from a called function if it fails.

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