Commit 1e49b095 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

serial: kgdb_nmi: remove redundant initialization of variable c

The variable c is being initialized with a value that is never
read, it is being updated later on. The assignment is redundant and
can be removed.
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210513230224.138859-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 064b6e47
...@@ -115,7 +115,7 @@ static void kgdb_tty_recv(int ch) ...@@ -115,7 +115,7 @@ static void kgdb_tty_recv(int ch)
static int kgdb_nmi_poll_one_knock(void) static int kgdb_nmi_poll_one_knock(void)
{ {
static int n; static int n;
int c = -1; int c;
const char *magic = kgdb_nmi_magic; const char *magic = kgdb_nmi_magic;
size_t m = strlen(magic); size_t m = strlen(magic);
bool printch = false; bool printch = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment