Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fd3d05a authored by Bob Liu's avatar Bob Liu Committed by Greg Kroah-Hartman
Browse files

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: default avatarBob Liu <bob.liu@oracle.com>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 555ee46f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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)
int zcache_autocreate_pool(unsigned int cli_id, unsigned int pool_id, bool eph)
{
{
	struct tmem_pool *pool;
	struct tmem_pool *pool;
	struct zcache_client *cli;
	struct zcache_client *cli = NULL;
	uint32_t flags = eph ? 0 : TMEM_POOL_PERSIST;
	uint32_t flags = eph ? 0 : TMEM_POOL_PERSIST;
	int ret = -1;
	int ret = -1;