aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorGravatar Colin Ian King <colin.i.king@gmail.com> 2024-02-16 12:17:32 +0000
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2024-02-18 18:59:58 +0100
commit5fcd6e71e8c5ac9091933dc44997f9ed68d9384a (patch)
treec14f97e4eeff0bcf3630b4c52c7204fa4c4b94b1 /drivers/tty
parentserial: lpc32xx_hs: remove redundant check and assignment of hsu_rate (diff)
downloadlinux-5fcd6e71e8c5ac9091933dc44997f9ed68d9384a.tar.gz
linux-5fcd6e71e8c5ac9091933dc44997f9ed68d9384a.tar.bz2
linux-5fcd6e71e8c5ac9091933dc44997f9ed68d9384a.zip
tty: jsm: Remove redundant assignment to variable linestatus
The variable linestate being assigned a value that is never read, the following continue statement jumps to the end of the while-loop and then it is re-assigned a new value. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/tty/serial/jsm/jsm_cls.c:398:4: warning: Value stored to 'linestatus' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240216121732.2106445-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/jsm/jsm_cls.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/jsm/jsm_cls.c b/drivers/tty/serial/jsm/jsm_cls.c
index 1eda48964c0b..ddbd42c09637 100644
--- a/drivers/tty/serial/jsm/jsm_cls.c
+++ b/drivers/tty/serial/jsm/jsm_cls.c
@@ -395,7 +395,6 @@ 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) {
- linestatus = 0;
readb(&ch->ch_cls_uart->txrx);
continue;
}