]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34117c50ea8620d32c25055fedb73a3354356a49
tree673e5ec3e798cf7099e0576a4c332e6f4876e6e1
parent9bdfd8eee9ae5c12aaa6f7cb8e695b2123153710
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