mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Colin Ian King <colin.king@canonical.com> Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210513230224.138859-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
064b6e47b2
commit
1e49b0954c
@ -115,7 +115,7 @@ static void kgdb_tty_recv(int ch)
|
||||
static int kgdb_nmi_poll_one_knock(void)
|
||||
{
|
||||
static int n;
|
||||
int c = -1;
|
||||
int c;
|
||||
const char *magic = kgdb_nmi_magic;
|
||||
size_t m = strlen(magic);
|
||||
bool printch = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user