]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita77dde909604e1e90ef1756d5f7c3513131264e0
treed5a556cad4a8f146695aa610fc1806f65438acc6
parentd155e21628677effca0d1cae3816eddb60fd5d7e
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