Message ID | 1405337838-30335-3-git-send-email-ch.naveen@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E3DF4C0514 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 14 Jul 2014 11:43:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B92C720138 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 14 Jul 2014 11:43:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA8AE20136 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 14 Jul 2014 11:43:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6edf-0007Ff-R6; Mon, 14 Jul 2014 11:41:47 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6edF-0005y6-Av for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 11:41:21 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8P00IHG9SF9I10@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 20:41:03 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id A5.3E.16580.FC1C3C35; Mon, 14 Jul 2014 20:41:03 +0900 (KST) X-AuditID: cbfee691-b7f2f6d0000040c4-7e-53c3c1cf576a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 61.F6.05196.FC1C3C35; Mon, 14 Jul 2014 20:41:03 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8P00BXR9RQIVA0@mmp2.samsung.com>; Mon, 14 Jul 2014 20:41:03 +0900 (KST) From: Naveen Krishna Chatradhi <ch.naveen@samsung.com> To: kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] serial: samsung: correct the case and default order in switch Date: Mon, 14 Jul 2014 17:07:17 +0530 Message-id: <1405337838-30335-3-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1405337838-30335-1-git-send-email-ch.naveen@samsung.com> References: <1405337838-30335-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRmVeSWpSXmKPExsWyRsSkSvf8wcPBBusvmFtMWneAyeLlIU2L +UfOsVo0L17PZtG74CqbxabH11gtZpzfx+TA7vF31Qtmj/1z17B7bF5S79G3ZRWjx+dNcgGs UVw2Kak5mWWpRfp2CVwZp+f2sBb0s1VMbsxoYPzK0sXIySEhYCIxbcZtZghbTOLCvfVsXYxc HEICSxklWudNZoMp2rdnMhOILSQwnVHi0a5iiKJ+JomLL66CJdgEzCQOLlrNDpIQEWhglGhZ /IgdJMEs4Cqxc8dCsHXCAiES/87uBouzCKhKzLy/CMzmBapZ/HQaaxcjB9A2BYk5k2xAwpwC bhI7/nYwQyx2lb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flYyc+72X7rVU1ruS+6gj+LFvV91b/9XPxJRKCp08qZ3rvZeZQm/DkQ uFN0mtbyjg1hMdOubL6ivOu8xXJL503/4x7EPy+yU3Vy/e5T+zRq6o2GtO7+AMfacJai6VGV jDs7vlRYW7X1XddKsdkRwGX28b8Lc49nAq/ux81KLMUZiYZazEXFiQCSyxdttQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140714_044121_579328_11304DED X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: gregkh@linuxfoundation.org, cpgs@samsung.com, ben-linux@fluff.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index e49a945..d98f93d 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; }
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> Cc: gregkh@linuxfoundation.org --- drivers/tty/serial/samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)