Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
5d5b53cf 171044a7

+1 -3
+1 -3
drivers/tty/serial/jsm/jsm_cls.c
··· 397 397 * which in this case is the break signal. 398 398 */ 399 399 if (linestatus & error_mask) { 400 - u8 discard; 401 - 402 400 linestatus = 0; 403 - discard = readb(&ch->ch_cls_uart->txrx); 401 + readb(&ch->ch_cls_uart->txrx); 404 402 continue; 405 403 } 406 404