staging: unisys: visorbus: refactor setup_crash_devices_work_queue
authorDavid Kershner <david.kershner@unisys.com>
Tue, 18 Apr 2017 20:55:21 +0000 (16:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 09:51:20 +0000 (11:51 +0200)
commitd9b89ef189a876a37032b8cc1fea4a80018d371d
tree8731df8ad209265e031701994b3a368c2e668ad6
parent03662df8114fa74cbd4e993c7e0ca1360db603a3
staging: unisys: visorbus: refactor setup_crash_devices_work_queue

The if statement was sending us down the happy path with the error path
in the else. This can be simplified by having the if be the error and
just falling through with the good path.

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