]> git.hungrycats.org Git - linux/commitdiff
mtd: maps: rbtx4939-flash: delete an unused variable in rbtx4939_flash_remove
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sat, 28 Jun 2014 15:01:18 +0000 (00:01 +0900)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:33:51 +0000 (13:33 +0000)
commit e4c4c9c15ebe8ec03b7f5bf36e079052cc88217c upstream.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/mtd/maps/rbtx4939-flash.c

index 146b6047ed2b0e066ebc5961244993927d7f8387..a84fdfb105186aa775b50b63f790fc6c8d87f5b7 100644 (file)
@@ -35,8 +35,6 @@ static int rbtx4939_flash_remove(struct platform_device *dev)
                return 0;
 
        if (info->mtd) {
-               struct rbtx4939_flash_data *pdata = dev_get_platdata(&dev->dev);
-
                mtd_device_unregister(info->mtd);
                map_destroy(info->mtd);
        }