Commit ff4b8c3a authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Greg Kroah-Hartman

tty: srmcons: make srmcons_do_write() return void

The return value of srmcons_do_write() is ignored as all characters are
pushed. So make srmcons_do_write() to return void.
Signed-off-by: default avatar"Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: linux-alpha@vger.kernel.org
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231127123713.14504-2-jirislaby@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3db64c5
...@@ -88,7 +88,7 @@ srmcons_receive_chars(struct timer_list *t) ...@@ -88,7 +88,7 @@ srmcons_receive_chars(struct timer_list *t)
} }
/* called with callback_lock held */ /* called with callback_lock held */
static int static void
srmcons_do_write(struct tty_port *port, const char *buf, int count) srmcons_do_write(struct tty_port *port, const char *buf, int count)
{ {
static char str_cr[1] = "\r"; static char str_cr[1] = "\r";
...@@ -125,7 +125,6 @@ srmcons_do_write(struct tty_port *port, const char *buf, int count) ...@@ -125,7 +125,6 @@ srmcons_do_write(struct tty_port *port, const char *buf, int count)
need_cr = 0; need_cr = 0;
} }
} }
return count;
} }
static ssize_t static ssize_t
......
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