mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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>
This commit is contained in:
parent
1364ea8a56
commit
5fcd6e71e8
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue