tty: serial: jsm: remove redundant assignments to variable linestatus
authorColin Ian King <colin.i.king@gmail.com>
Mon, 7 Mar 2022 15:30:47 +0000 (15:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:14:47 +0000 (13:14 +0100)
commit168b504bc1d2c4df352bd5bf5e6853aff0d229c9
tree292bdde7d8af1d4e6ec623f33377548e7e9b3a8f
parenta6cee01b4f9205ce664e3442ee7bd5aee0d650de
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 <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220307153047.139639-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/jsm/jsm_cls.c