[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210313215808.dt7uvt2suwq4z4x3@kewl-virtual-machine>
Date: Sun, 14 Mar 2021 03:28:08 +0530
From: Shubhankar Kuranagatti <shubhankarvk@...il.com>
To: jason.wessel@...driver.com
Cc: dianders@...omium.org, arnd@...db.de, gregkh@...uxfoundation.org,
kgdb-bugreport@...ts.sourceforge.net, linux-kernel@...r.kernel.org,
bkkarthik@...u.pes.edu
Subject: [PATCH 1/2] drivers: misc: kgdbts.c: Fix declaration warning.
A new line has been added after declaration. This is done to
maintain code uniformity.
Signed-off-by: Shubhankar Kuranagatti <shubhankarvk@...il.com>
---
drivers/misc/kgdbts.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c
index 945701bce553..3ee5acc1c391 100644
--- a/drivers/misc/kgdbts.c
+++ b/drivers/misc/kgdbts.c
@@ -474,6 +474,7 @@ static int emul_sstep_put(char *put_str, char *arg)
{
if (!arch_needs_sstep_emulation) {
char *ptr = &put_str[11];
+
if (put_str[1] != 'T' || put_str[2] != '0')
return 1;
kgdb_hex2long(&ptr, &sstep_thread_id);
@@ -502,6 +503,7 @@ static int emul_sstep_put(char *put_str, char *arg)
return 1;
} else {
char *ptr = &put_str[11];
+
kgdb_hex2long(&ptr, &sstep_thread_id);
}
break;
@@ -740,6 +742,7 @@ static int validate_simple_test(char *put_str)
static int run_simple_test(int is_get_char, int chr)
{
int ret = 0;
+
if (is_get_char) {
/* Send an ACK on the get if a prior put completed and set the * send ack variable
--
2.17.1
Powered by blists - more mailing lists