From: Naveen Krishna Chatradhi Date: Mon, 14 Jul 2014 11:37:17 +0000 (+0530) Subject: serial: samsung: correct the case and default order in switch X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3bcce591aa1f5d9248666e41d99e76c27de6900f;p=deliverable%2Flinux.git 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 Reviewed-by: Tomasz Figa Signed-off-by: Greg Kroah-Hartman --- 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, case S3C2410_LCON_CS7: *bits = 7; break; - default: case S3C2410_LCON_CS8: + default: *bits = 8; break; }