aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/zcache
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2013-04-02 10:47:43 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-02 12:43:41 -0700
commit6fd3d05a8f4b0979960a3d90b0f9ea3c6cefe282 (patch)
treebca932e3a17a866dd61527cf7db84cf1eb3d9f24 /drivers/staging/zcache
parentdrivers: staging: zcache: fix compile error (diff)
downloadlinux-dev-6fd3d05a8f4b0979960a3d90b0f9ea3c6cefe282.tar.xz
linux-dev-6fd3d05a8f4b0979960a3d90b0f9ea3c6cefe282.zip
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 <bob.liu@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/zcache')
-rw-r--r--drivers/staging/zcache/zcache-main.c2
1 files changed, 1 insertions, 1 deletions
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;