Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1721879 > unrolled thread

[PATCH] sparc64: vcc: make ktermios const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-28 20:30 +0200
Last post2017-08-30 00:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] sparc64: vcc: make ktermios const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-28 20:30 +0200
    Re: [PATCH] sparc64: vcc: make ktermios const David Miller <davem@davemloft.net> - 2017-08-30 00:20 +0200

#1721879 — [PATCH] sparc64: vcc: make ktermios const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-28 20:30 +0200
Subject[PATCH] sparc64: vcc: make ktermios const
Message-ID<ujwXn-vG-3@gated-at.bofh.it>
Make this const as it is not modified anywhere.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/tty/vcc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c
index 5e60817..f7e07e1 100644
--- a/drivers/tty/vcc.c
+++ b/drivers/tty/vcc.c
@@ -102,7 +102,7 @@ struct vcc_port {
  * add anything that will cause echoing or we'll go into recursive
  * loop echoing chars back and forth with the console drivers.
  */
-static struct ktermios vcc_tty_termios = {
+static const struct ktermios vcc_tty_termios = {
 	.c_iflag = IGNBRK | IGNPAR,
 	.c_oflag = OPOST,
 	.c_cflag = B38400 | CS8 | CREAD | HUPCL,
-- 
1.9.1

[toc] | [next] | [standalone]


#1722886

FromDavid Miller <davem@davemloft.net>
Date2017-08-30 00:20 +0200
Message-ID<ujX1w-8qU-7@gated-at.bofh.it>
In reply to#1721879
From: Bhumika Goyal <bhumirks@gmail.com>
Date: Mon, 28 Aug 2017 23:58:44 +0530

> Make this const as it is not modified anywhere.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web