aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-11-04 19:35:24 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-06 10:49:27 +0100
commit5d5b53cf92a73d06181a366ae8160708a18e0e1c (patch)
tree51ea3e743b5d6e9eadd2dee0c5c10a2549ef47d5 /drivers/tty/serial
parenttty: n_tty: Add 2 missing parameter descriptions (diff)
downloadlinux-dev-5d5b53cf92a73d06181a366ae8160708a18e0e1c.tar.xz
linux-dev-5d5b53cf92a73d06181a366ae8160708a18e0e1c.zip
tty: serial: jsm: jsm_cls: Remove unused variable 'discard'
Fixes the following W=1 kernel build warning(s): drivers/tty/serial/jsm/jsm_cls.c: In function ‘cls_copy_data_from_uart_to_queue’: drivers/tty/serial/jsm/jsm_cls.c:400:7: warning: variable ‘discard’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jirislaby@kernel.org> Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20201104193549.4026187-12-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/jsm/jsm_cls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/jsm/jsm_cls.c b/drivers/tty/serial/jsm/jsm_cls.c
index c061a7b7bd23..b507a2cec926 100644
--- a/drivers/tty/serial/jsm/jsm_cls.c
+++ b/drivers/tty/serial/jsm/jsm_cls.c
@@ -397,10 +397,8 @@ static void cls_copy_data_from_uart_to_queue(struct jsm_channel *ch)
* which in this case is the break signal.
*/
if (linestatus & error_mask) {
- u8 discard;
-
linestatus = 0;
- discard = readb(&ch->ch_cls_uart->txrx);
+ readb(&ch->ch_cls_uart->txrx);
continue;
}