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>
Wed, 10 Jul 2019 07:53:46 +0000 (09:53 +0200)
commit4f24801ef50b05125371c55048695a9430b8f1a2
tree9b19b61659d44545e7b91f50e0daf7d72d2a1406
parent318244f3641a1e136595746dce8407d216946674
sc16is7xx: move label 'err_spi' to correct section

[ Upstream commit e00164a0f000de893944981f41a568c981aca658 ]

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: ac0cdb3d9901 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/sc16is7xx.c