]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging/xgifb: Remove unnecessary cases in XGINew_SenseLCD
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 13 May 2013 21:41:46 +0000 (23:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 23:02:34 +0000 (16:02 -0700)
commitbcd1f16573e1975c8a78a29bbc68e483970d9bd8
treeccda43989d0b9b3b1f417817a28bc06d7badc116
parentfb70b191ee8fc29264791b0c25ec2925b98bb0e3
staging/xgifb: Remove unnecessary cases in XGINew_SenseLCD

The switch statement sets the temp value to zero for certain cases and
leaves it untouched for other cases -> all these other cases can be
combined in the default case.

Since an empty case containing only a break, it can be removed.

The patch also removes the if statement, as it uses the same value as the switch
for comparison, and includes the code into the switch.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_init.c