mtd: bfin-async-flash: Remove unused variable

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Dec 15 19:59:02 PST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a72fe6b2ce7fd39d1df4cb4bb0330348824c6025
Commit:     a72fe6b2ce7fd39d1df4cb4bb0330348824c6025
Parent:     9c350066a709f7ee3d1219e9888252daf547af99
Author:     Aaron Sierra <asierra at xes-inc.com>
AuthorDate: Tue Sep 23 14:07:24 2014 -0500
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Oct 22 01:35:41 2014 -0700

    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'
    
    Signed-off-by: Aaron Sierra <asierra at xes-inc.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/maps/bfin-async-flash.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/maps/bfin-async-flash.c b/drivers/mtd/maps/bfin-async-flash.c
index 6ea51e5..41730fe 100644
--- a/drivers/mtd/maps/bfin-async-flash.c
+++ b/drivers/mtd/maps/bfin-async-flash.c
@@ -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);



More information about the linux-mtd-cvs mailing list