Messages in this thread Patch in this message | | | Date | Tue, 17 Jul 2018 17:14:55 -0700 | Subject | [PATCH 3/3] tty: Mark goldfish_tty_line_count as const | From | rkir@google ... |
| |
From: Roman Kiryanov <rkir@google.com>
The driver never mutates this variable - no benefits of keeping it mutable.
Signed-off-by: Roman Kiryanov <rkir@google.com> --- drivers/tty/goldfish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/goldfish.c b/drivers/tty/goldfish.c index a9c8ab8a4750..32b77bf54918 100644 --- a/drivers/tty/goldfish.c +++ b/drivers/tty/goldfish.c @@ -49,7 +49,7 @@ struct goldfish_tty { static DEFINE_MUTEX(goldfish_tty_lock); static struct tty_driver *goldfish_tty_driver; -static u32 goldfish_tty_line_count = 8; +static const u32 goldfish_tty_line_count = 8; static u32 goldfish_tty_current_line_count; static struct goldfish_tty *goldfish_ttys; -- 2.18.0.203.gfac676dfb9-goog
| |