]> git.baikalelectronics.ru Git - kernel.git/commit
tty: omap-serial: remove set but unused variable
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Fri, 6 Dec 2019 07:37:43 +0000 (15:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Dec 2019 13:28:48 +0000 (14:28 +0100)
commit8d8d54336439af53367ec678182787e4a3d3aa9e
tree314ee1681fa2405d887f96d361dd3db9c31ceb8d
parent47599c6298943ede4662b5e31dfe375feac1b48a
tty: omap-serial: remove set but unused variable

Fix the following warning:
drivers/tty/serial/omap-serial.c: In function serial_omap_rlsi:
drivers/tty/serial/omap-serial.c:496:16: warning: variable ch set but not used [-Wunused-but-set-variable]

The character read is useless according to the table 23-246 of the omap4
TRM. So we can drop it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Link: https://lore.kernel.org/r/1575617863-32484-1-git-send-email-wangxiongfeng2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c