mtd: bfin-async-flash: Remove unused variable
authorAaron Sierra <asierra@xes-inc.com>
Tue, 23 Sep 2014 19:07:24 +0000 (14:07 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 22 Oct 2014 08:35:41 +0000 (01:35 -0700)
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'

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/bfin-async-flash.c

index 6ea51e549045592072016cb9387981373b0aecc0..41730feeace8f1213c8ebd803af0e2a12be2ca9e 100644 (file)
@@ -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);