summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-09-06 09:58:46 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-13 06:44:29 -0700
commitdf35c2f74b81247b591f6dd1e6dc72503ca180e2 (patch)
treef59fdd5dd235d2d1a4b576ff24794f7ef5a7aef5 /xlators
parent993edcc972269424901357578568b48af70a6a63 (diff)
features/quota remove dead variables.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1128 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1128
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/quota/src/quota.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 40cfeb07f..4e9b587c2 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -179,9 +179,7 @@ quota_truncate_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno, struct iatt *buf)
{
struct quota_local *local = NULL;
- struct quota_priv *priv = NULL;
- priv = this->private;
local = frame->local;
if (op_ret >= 0) {
@@ -254,9 +252,7 @@ quota_ftruncate_fstat_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno, struct iatt *buf)
{
struct quota_local *local = NULL;
- struct quota_priv *priv = NULL;
- priv = this->private;
local = frame->local;
if (op_ret >= 0) {
@@ -620,12 +616,11 @@ quota_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
struct iatt *preparent, struct iatt *postparent)
{
struct quota_priv *priv = this->private;
- int ret = 0;
if ((op_ret >= 0) && priv->disk_usage_limit) {
gf_quota_usage_add (this, buf->ia_blocks * 512);
- ret = fd_ctx_set (fd, this, 1);
+ fd_ctx_set (fd, this, 1);
}
STACK_UNWIND_STRICT (create, frame, op_ret, op_errno, fd, inode, buf,
@@ -672,10 +667,9 @@ int
quota_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int32_t op_ret, int32_t op_errno, fd_t *fd)
{
- int ret = 0;
if (op_ret >= 0)
- ret = fd_ctx_set (fd, this, 1);
+ fd_ctx_set (fd, this, 1);
STACK_UNWIND_STRICT (open, frame, op_ret, op_errno, fd);
return 0;