diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-07-17 16:45:27 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-23 21:15:35 -0400 |
commit | fd484b86a22efeea06298c0dc3b1518473ff2fc4 (patch) | |
tree | d1947a211a4b48399cb7bd48c8af2b6507cf6469 | |
parent | 676cecaaddd09bbe41a38b1d15f190da10087294 (diff) |
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.
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/spectra/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/spectra/flash.c b/drivers/staging/spectra/flash.c index a0d60942fda5..26733888fd0a 100644 --- a/drivers/staging/spectra/flash.c +++ b/drivers/staging/spectra/flash.c | |||
@@ -1698,7 +1698,7 @@ static int get_l2_cache_blks(void) | |||
1698 | static int erase_l2_cache_blocks(void) | 1698 | static int erase_l2_cache_blocks(void) |
1699 | { | 1699 | { |
1700 | int i, ret = PASS; | 1700 | int i, ret = PASS; |
1701 | u32 pblk, lblk; | 1701 | u32 pblk, lblk = BAD_BLOCK; |
1702 | u64 addr; | 1702 | u64 addr; |
1703 | u32 *pbt = (u32 *)g_pBlockTable; | 1703 | u32 *pbt = (u32 *)g_pBlockTable; |
1704 | 1704 | ||