Patchwork [2/2] mtd: sst25l: kill unused variable

login
register
mail settings
Submitter Artem Bityutskiy
Date Dec. 29, 2011, 4:11 p.m.
Message ID <1325175108-7945-2-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/133566/
State New
Headers show

Comments

Artem Bityutskiy - Dec. 29, 2011, 4:11 p.m.
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

Fix the following gcc warning:
drivers/mtd/devices/sst25l.c: In function ‘sst25l_probe’:
drivers/mtd/devices/sst25l.c:381:11: warning: unused variable ‘i’ [-Wunused-variable]

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
 drivers/mtd/devices/sst25l.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c
index e45f62e..5fc1983 100644
--- a/drivers/mtd/devices/sst25l.c
+++ b/drivers/mtd/devices/sst25l.c
@@ -378,7 +378,7 @@  static int __devinit sst25l_probe(struct spi_device *spi)
 	struct flash_info *flash_info;
 	struct sst25l_flash *flash;
 	struct flash_platform_data *data;
-	int ret, i;
+	int ret;
 
 	flash_info = sst25l_match_device(spi);
 	if (!flash_info)