Skip to contentSkip to conversation

mtd: bfin-async-flash: Remove unused variable

PATCH Applied Aaron Sierra 2 participants 2 messages Sep 23, 2014 – Oct 22, 2014 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 mtd: bfin-async-flash: Remove unused variable

Avoid the following compile warning:

drivers/mtd/maps/bfin-async-flash.c: In function 'bfin_flash_probe':
drivers/mtd/maps/bfin-async-flash.c:129: warning: unused variable 'ret'

---
 drivers/mtd/maps/bfin-async-flash.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/maps/bfin-async-flash.c +0 -1
index 6ea51e5..41730fe 100644
@@ -126,7 +126,6 @@ static const char * const part_probe_types[] = {
 
 static int bfin_flash_probe(struct platform_device *pdev)
 {
-	int ret;
 	struct physmap_flash_data *pdata = dev_get_platdata(&pdev->dev);
 	struct resource *memory = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	struct resource *flash_ambctl = platform_get_resource(pdev, IORESOURCE_MEM, 1);
Signature · 1 line
1.9.1
Applied
#2 lore raw
Quoted 6 lines · Aaron Sierra

Avoid the following compile warning:

drivers/mtd/maps/bfin-async-flash.c: In function 'bfin_flash_probe':
drivers/mtd/maps/bfin-async-flash.c:129: warning: unused variable 'ret'

Pushed to l2-mtd.git.

Brian