From df35c2f74b81247b591f6dd1e6dc72503ca180e2 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Mon, 6 Sep 2010 09:58:46 +0000 Subject: features/quota remove dead variables. Signed-off-by: Sachidananda Urs Signed-off-by: Vijay Bellur BUG: 1128 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1128 --- xlators/features/quota/src/quota.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 40cfeb07fcc..4e9b587c27f 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; -- cgit