From 42bc1ac850707eec935803d5a1a573ebfc5e3012 Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Sun, 9 Nov 2014 12:10:31 +0100 Subject: mtd: nand_orion: remove unused goto label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following warning: drivers/mtd/nand/nand_orion.c: In function ‘orion_nand_probe’: drivers/mtd/nand/nand_orion.c:145:1: warning: label ‘no_res’ defined but not used [-Wunused-label] Fixes: 1a215f5 ("nand: Add Marvell Orion NAND driver") Signed-off-by: Uwe Kleine-König Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_orion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/nand_orion.c b/drivers/mtd/nand/nand_orion.c index 2c9707d04f..fe06ef7912 100644 --- a/drivers/mtd/nand/nand_orion.c +++ b/drivers/mtd/nand/nand_orion.c @@ -142,7 +142,7 @@ static int orion_nand_probe(struct device_d *dev) no_dev: if (!IS_ERR(clk)) clk_disable(clk); -no_res: + free(priv); return ret; } -- cgit v1.2.3