Skip to contentSkip to conversation

staging/spectra: initializa lblk variable

PATCH In review Javier Martinez Canillas 1 participant 1 message Jul 17, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 staging/spectra: initializa lblk variable

Fix a compile warning by initializaing lblk. Since FTL_Get_Block_Index() returns BAD_BLOCK if it doesn't find the logical block number, lblk number is initizalized to BAD_BLOCK.

---
 drivers/staging/spectra/flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/spectra/flash.c +1 -1
index a0d6094..2673388 100644
@@ -1698,7 +1698,7 @@ static int get_l2_cache_blks(void)
 static int erase_l2_cache_blocks(void)
 {
 	int i, ret = PASS;
-	u32 pblk, lblk;
+	u32 pblk, lblk = BAD_BLOCK;
 	u64 addr;
 	u32 *pbt = (u32 *)g_pBlockTable;
 
Signature · 1 line
1.7.0.4