From: Dan Magenheimer Date: Fri, 18 Jan 2013 21:24:27 +0000 (-0800) Subject: staging: zcache: fix uninitialized variable compile warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d6c19b6e7a2f040dd45a69f8afe051638b666a59;p=openwrt%2Fstaging%2Fblogic.git staging: zcache: fix uninitialized variable compile warning [V2: no code changes, patchset now generated via git format-patch -M] Fix unitialized variable in zcache which generates warning during build Signed-off-by: Dan Magenheimer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index a09dd5cc1cea..6ab13e123e7b 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c @@ -1346,7 +1346,7 @@ static int zcache_local_new_pool(uint32_t flags) int zcache_autocreate_pool(unsigned int cli_id, unsigned int pool_id, bool eph) { struct tmem_pool *pool; - struct zcache_client *cli; + struct zcache_client *cli = NULL; uint32_t flags = eph ? 0 : TMEM_POOL_PERSIST; int ret = -1;