OSDN Git Service

serial: 8250_exar: Drop unused variable in pci_xr17v35x_setup()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 23 Jul 2018 09:02:10 +0000 (12:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Jul 2018 12:15:49 +0000 (14:15 +0200)
commitb340cbbea5b876b9051d88afc712411a65750cf1
tree3e09e1cc65b0bd1f0632748670db230d325c3798
parentf4c6fbc96eb187d6432fbba1f9c0c2db598cdf29
serial: 8250_exar: Drop unused variable in pci_xr17v35x_setup()

After removal has_slave use the variable board becomes unused.
Remove it to avoid a warning:

drivers/tty/serial/8250/8250_exar.c: In function 'pci_xr17v35x_setup':
drivers/tty/serial/8250/8250_exar.c:380:31: warning: unused variable 'board' [-Wunused-variable]
  const struct exar8250_board *board = priv->board;
                               ^~~~~

Fixes: 328c11f24b57 ("serial: 8250_exar: Remove useless has_slave member")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c