staging: sm750fb: Refine code in set_current_gate().
authorElise Lennion <elise.lennion@gmail.com>
Fri, 28 Oct 2016 00:22:28 +0000 (22:22 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2016 15:13:11 +0000 (11:13 -0400)
commitcefc2fc61e1f5c80c6240634da01a4b846e9a6db
tree0caf7329dfa5646bdda9f7896496672f65fedbb7
parent1fda5b7566561c8e1fc6fd572cbdc7ec32051b16
staging: sm750fb: Refine code in set_current_gate().

The 'switch' statement in set_current_gate() had only two possible
scenarios, so it was replaced with an 'if' statement to make the code
shorter and easier to understand.

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_power.c