aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2014-07-14 07:37:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-17 21:18:22 -0400
commit3bcce591aa1f5d9248666e41d99e76c27de6900f (patch)
tree2147d916541cb854ed7cd7592945630f72c8cfca /drivers/tty
parent135f07c3252dc77d0245714d0b413ecc711cd823 (diff)
serial: samsung: correct the case and default order in switch
The cases should comes before default in a switch. Even if we want the case and default to share same code. Its good to define the case first followed by default. Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/samsung.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index e49a9451976e..d98f93db85f9 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -1542,8 +1542,8 @@ s3c24xx_serial_get_options(struct uart_port *port, int *baud,
1542 case S3C2410_LCON_CS7: 1542 case S3C2410_LCON_CS7:
1543 *bits = 7; 1543 *bits = 7;
1544 break; 1544 break;
1545 default:
1546 case S3C2410_LCON_CS8: 1545 case S3C2410_LCON_CS8:
1546 default:
1547 *bits = 8; 1547 *bits = 8;
1548 break; 1548 break;
1549 } 1549 }