From: Bob Liu Date: Tue, 2 Apr 2013 02:47:43 +0000 (+0800) Subject: drivers: staging: zcache: fix compile warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6fd3d05a8f4b0979960a3d90b0f9ea3c6cefe282;p=openwrt%2Fstaging%2Fblogic.git drivers: staging: zcache: fix compile warning Fix below compile warning: staging/zcache/zcache-main.c: In function ‘zcache_autocreate_pool’: staging/zcache/zcache-main.c:1393:13: warning: ‘cli’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Bob Liu Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index cf3001c1f407..fb699df30713 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c @@ -1335,7 +1335,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;