summaryrefslogtreecommitdiffstats
path: root/drivers/staging/zcache
diff options
context:
space:
mode:
authorXiao Guangrong2012-06-26 10:50:10 +0200
committerGreg Kroah-Hartman2012-07-09 20:31:15 +0200
commita16554474f772ea857bf193608231a735e01cccc (patch)
tree453071487b0be3e2a23301268a1c5849dfe88bf4 /drivers/staging/zcache
parentstaging: zcache: fix refcount leak (diff)
downloadkernel-qcow2-linux-a16554474f772ea857bf193608231a735e01cccc.tar.gz
kernel-qcow2-linux-a16554474f772ea857bf193608231a735e01cccc.tar.xz
kernel-qcow2-linux-a16554474f772ea857bf193608231a735e01cccc.zip
staging: zcache: fix a compile warning
Fix: drivers/staging/zcache/zcache-main.c: In function ‘zcache_comp_op’: drivers/staging/zcache/zcache-main.c:112:2: warning: ‘ret’ may be used uninitial Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Acked-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, 2 insertions, 0 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c
index 55fbe3db7d53..58e7bd432508 100644
--- a/drivers/staging/zcache/zcache-main.c
+++ b/drivers/staging/zcache/zcache-main.c
@@ -109,6 +109,8 @@ static inline int zcache_comp_op(enum comp_op op,
case ZCACHE_COMPOP_DECOMPRESS:
ret = crypto_comp_decompress(tfm, src, slen, dst, dlen);
break;
+ default:
+ ret = -EINVAL;
}
put_cpu();
return ret;