diff options
| author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-09-18 08:33:28 -0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-18 18:31:49 +0200 |
| commit | c45e2d2547cb2ba0ee8391d8cb2fd2f7cdc016f5 (patch) | |
| tree | babbedf20c8265ac7998f0c48e366ac843376f19 /scripts/gdb/linux/proc.py | |
| parent | 556c27806071d61e2b2e6da7c0a77b1efa4cd832 (diff) | |
serial: fsl_lpuart: Remove unused 'bd' variable
Since commit a6d7514b14a6 ("tty: serial: lpuart: add a more accurate baud
rate calculation method") the baud rate is now calculated inside the
lpuart32_serial_setbrg() function, so we no longer need to read the
UARTBAUD register inside lpuart32_set_termios().
The 'bd' variable can be simply removed.
This fixes the following build warning with W=1:
drivers/tty/serial/fsl_lpuart.c: In function 'lpuart32_set_termios':
drivers/tty/serial/fsl_lpuart.c:1652:32: warning: variable 'bd' set but not used [-Wunused-but-set-variable]
Fixes: a6d7514b14a6 ("tty: serial: lpuart: add a more accurate baud rate calculation method")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions
