Skip to content

Commit 168b504

Browse files
ColinIanKinggregkh
authored andcommitted
tty: serial: jsm: remove redundant assignments to variable linestatus
Variable linestatus is being assigned values that are never read, the assignments are redundant and can be removed. Cleans up clang scan warnings: drivers/tty/serial/jsm/jsm_cls.c:369:2: warning: Value stored to 'linestatus' is never read [deadcode.DeadStores] drivers/tty/serial/jsm/jsm_cls.c:400:4: warning: Value stored to 'linestatus' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a6cee01 commit 168b504

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/tty/serial/jsm/jsm_cls.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static void cls_assert_modem_signals(struct jsm_channel *ch)
350350
static void cls_copy_data_from_uart_to_queue(struct jsm_channel *ch)
351351
{
352352
int qleft = 0;
353-
u8 linestatus = 0;
353+
u8 linestatus;
354354
u8 error_mask = 0;
355355
u16 head;
356356
u16 tail;
@@ -365,8 +365,6 @@ static void cls_copy_data_from_uart_to_queue(struct jsm_channel *ch)
365365
head = ch->ch_r_head & RQUEUEMASK;
366366
tail = ch->ch_r_tail & RQUEUEMASK;
367367

368-
/* Get our cached LSR */
369-
linestatus = ch->ch_cached_lsr;
370368
ch->ch_cached_lsr = 0;
371369

372370
/* Store how much space we have left in the queue */

0 commit comments

Comments
 (0)