staging: zcache: fix uninitialized variable compile warning
authorDan Magenheimer <dan.magenheimer@oracle.com>
Fri, 18 Jan 2013 21:24:27 +0000 (13:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 21:43:44 +0000 (13:43 -0800)
[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 <dan.magenheimer@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c

index a09dd5cc1cea5781c31732300135b308d521cfcd..6ab13e123e7b411f4ca906d1143445441638f184 100644 (file)
@@ -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;