diff mbox series

[next] spi: atmel: remove redundant label out_free

Message ID 20200709101203.1374117-1-colin.king@canonical.com (mailing list archive)
State Accepted
Commit 50f06cb1dd82f13a1d3897a327dcd7963ea75707
Headers show
Series [next] spi: atmel: remove redundant label out_free | expand

Commit Message

Colin King July 9, 2020, 10:12 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

The error exit label out_free is no longer being used, it is redundant
and can be removed.

Cleans up warning:
drivers/spi/spi-atmel.c:1680:1: warning: label ‘out_free’ defined but not used [-Wunused-label]

Fixes: 2d9a744685bc ("spi: atmel: No need to call spi_master_put() if spi_alloc_master() failed")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/spi/spi-atmel.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Mark Brown July 9, 2020, 10 p.m. UTC | #1
On Thu, 9 Jul 2020 11:12:03 +0100, Colin King wrote:
> The error exit label out_free is no longer being used, it is redundant
> and can be removed.
> 
> Cleans up warning:
> drivers/spi/spi-atmel.c:1680:1: warning: label ‘out_free’ defined but not used [-Wunused-label]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: atmel: remove redundant label out_free
      commit: 50f06cb1dd82f13a1d3897a327dcd7963ea75707

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index 6ed7abdcf74a..2cfe6253a784 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -1677,7 +1677,6 @@  static int atmel_spi_probe(struct platform_device *pdev)
 	clk_disable_unprepare(clk);
 out_free_irq:
 out_unmap_regs:
-out_free:
 	spi_master_put(master);
 	return ret;
 }