staging: unisys: visorbus: cleanup error handling in visorbus_uevent
authorDavid Kershner <david.kershner@unisys.com>
Tue, 28 Mar 2017 13:34:49 +0000 (09:34 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:17:03 +0000 (09:17 +0200)
commitf894c88a2448144db2fd4b6b2e6d0bc741d395b9
treed5a556cad4a8f146695aa610fc1806f65438acc6
parent15928a55690d744663ae2a924dca7b765eda9ed5
staging: unisys: visorbus: cleanup error handling in visorbus_uevent

The add_uevent_var returns an error. Don't overwrite the error with
-ENOMEM, just pass the error code back up.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c