[3.16-stable,43/87] mtd: maps: rbtx4939-flash: delete an unused variable in rbtx4939_flash_remove

Message ID 20170505194745.3627137-44-arnd@arndb.de
State New
Headers show
Series
  • build warnings and errors
Related show

Commit Message

Arnd Bergmann May 5, 2017, 7:47 p.m.
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>


Commit 939f9d8ee0aa99d7cb44af8de8eed13333ceb2ed 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>

---
 drivers/mtd/maps/rbtx4939-flash.c | 2 --
 1 file changed, 2 deletions(-)

-- 
2.9.0

Patch hide | download patch | download mbox

diff --git a/drivers/mtd/maps/rbtx4939-flash.c b/drivers/mtd/maps/rbtx4939-flash.c
index 146b6047ed2b..a84fdfb10518 100644
--- a/drivers/mtd/maps/rbtx4939-flash.c
+++ b/drivers/mtd/maps/rbtx4939-flash.c
@@ -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);
 	}