]> git.baikalelectronics.ru Git - kernel.git/commit
sc16is7xx: move label 'err_spi' to correct section
authorGuoqing Jiang <gqjiang@suse.com>
Tue, 9 Apr 2019 08:16:38 +0000 (16:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 13:24:38 +0000 (15:24 +0200)
commit80cc9e0da393107650b66aae54e326e33ba6885d
tree6c5543aa77c9e611a42521be766dff5c39b83110
parent1c2378e308df574ee11089bc6fe900726e51677b
sc16is7xx: move label 'err_spi' to correct section

err_spi is used when SERIAL_SC16IS7XX_SPI is enabled, so make
the label only available under SERIAL_SC16IS7XX_SPI option.
Otherwise, the below warning appears.

drivers/tty/serial/sc16is7xx.c:1523:1: warning: label ‘err_spi’ defined but not used [-Wunused-label]
 err_spi:
  ^~~~~~~

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Fixes: bd3fcb9284f1 ("sc16is7xx: missing unregister/delete driver on error in sc16is7xx_init()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c