Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pch_uart: remove set but not used variable 'tx_empty'

tx_empty is not used after setting its value. It is safe to remove
the unused variable.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

zhong jiang and committed by
Greg Kroah-Hartman
114c97ce 7034ef87

-3
-3
drivers/tty/serial/pch_uart.c
··· 933 933 struct scatterlist *sg; 934 934 int nent; 935 935 int fifo_size; 936 - int tx_empty; 937 936 struct dma_async_tx_descriptor *desc; 938 937 int num; 939 938 int i; ··· 957 958 } 958 959 959 960 fifo_size = max(priv->fifo_size, 1); 960 - tx_empty = 1; 961 961 if (pop_tx_x(priv, xmit->buf)) { 962 962 pch_uart_hal_write(priv, xmit->buf, 1); 963 963 port->icount.tx++; 964 - tx_empty = 0; 965 964 fifo_size--; 966 965 } 967 966