From: Javier Martinez Canillas Date: Sat, 17 Jul 2010 20:45:27 +0000 (-0400) Subject: Staging: spectra: initializa lblk variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd484b86a22efeea06298c0dc3b1518473ff2fc4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) 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;