staging: unisys: visorbus: Use switch statement instead of conditionals
authorDavid Binder <david.binder@unisys.com>
Thu, 22 Dec 2016 16:08:59 +0000 (11:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:17:02 +0000 (15:17 +0100)
commit36309d3b105c650eb0398afd1675df30fb570e5d
treeffa7a8ce017091e90a7b66c21778b83e5940f6ae
parent98f9ed9ecb5780f654ecf54b7c27bfff9a38962c
staging: unisys: visorbus: Use switch statement instead of conditionals

Control flow is now directed using a switch statement, triggered by the
enum crash_obj_type function parameter, instead of a set of conditional
statements.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c