diff options
-rw-r--r-- | libglusterfs/src/inode.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libglusterfs/src/inode.c b/libglusterfs/src/inode.c index 7c548653ebf..c010db2a682 100644 --- a/libglusterfs/src/inode.c +++ b/libglusterfs/src/inode.c @@ -1898,14 +1898,16 @@ __inode_ctx_get2 (inode_t *inode, xlator_t *xlator, uint64_t *value1, goto out; if (inode->_ctx[index].value1) { - if (value1) + if (value1) { *value1 = inode->_ctx[index].value1; - ret = 0; + ret = 0; + } } if (inode->_ctx[index].value2) { - if (value2) + if (value2) { *value2 = inode->_ctx[index].value2; - ret = 0; + ret = 0; + } } out: return ret; |