[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220513015427.569539-1-chris.zjh@huawei.com>
Date: Fri, 13 May 2022 09:54:27 +0800
From: Zhang Jianhua <chris.zjh@...wei.com>
To: <gregkh@...uxfoundation.org>, <jirislaby@...nel.org>,
<chris.zjh@...wei.com>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH -next v2] vt: defkeymap.c_shipped remove unused variables
The global variables 'funcbufptr' 'funcbufsize' and 'funcbufleft' have
been initialized but not used, they are redundant and remove them.
Signed-off-by: Zhang Jianhua <chris.zjh@...wei.com>
---
No code changes since v1, only remove the redundant line "--------" in
v1 commit message.
---
drivers/tty/vt/defkeymap.c_shipped | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/tty/vt/defkeymap.c_shipped b/drivers/tty/vt/defkeymap.c_shipped
index 094d95bf0005..80dee50bcb7a 100644
--- a/drivers/tty/vt/defkeymap.c_shipped
+++ b/drivers/tty/vt/defkeymap.c_shipped
@@ -185,10 +185,6 @@ char func_buf[] = {
'\033', '[', 'P', 0,
};
-char *funcbufptr = func_buf;
-int funcbufsize = sizeof(func_buf);
-int funcbufleft = 0; /* space left */
-
char *func_table[MAX_NR_FUNC] = {
func_buf + 0,
func_buf + 5,
--
2.31.0
Powered by blists - more mailing lists