staging: sm750fb: remove unneeded switch statement
authorMike Rapoport <mike.rapoport@gmail.com>
Thu, 1 Oct 2015 09:14:02 +0000 (12:14 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:50:52 +0000 (11:50 +0200)
commit104f456ce1301fa49f7dffc129c0bce420da07df
tree673e5ec3e798cf7099e0576a4c332e6f4876e6e1
parent2d893537569948120332184bbea29c743f9951d9
staging: sm750fb: remove unneeded switch statement

The lynxfb_ops_check_var function has two switch statements, the first
one checks for validity of var->bits_per_pixel and it is is immediatly
followed by another one that sets parameters according to
var->bits_per_pixel value. These switch statements can be merged into
one.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c