diff options
Diffstat (limited to 'xlators/features/quota/src/quotad-aggregator.c')
-rw-r--r-- | xlators/features/quota/src/quotad-aggregator.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c index 82d18ea15e0..428153fa2bd 100644 --- a/xlators/features/quota/src/quotad-aggregator.c +++ b/xlators/features/quota/src/quotad-aggregator.c @@ -182,7 +182,6 @@ quotad_aggregator_getlimit (rpcsvc_request_t *req) gf_cli_req cli_req = {{0}, }; gf_cli_rsp cli_rsp = {0}; gfs3_lookup_req args = {{0,},}; - gfs3_lookup_rsp rsp = {0,}; quotad_aggregator_state_t *state = NULL; xlator_t *this = NULL; dict_t *dict = NULL; @@ -225,8 +224,8 @@ quotad_aggregator_getlimit (rpcsvc_request_t *req) frame = quotad_aggregator_get_frame_from_req (req); if (frame == NULL) { - rsp.op_errno = ENOMEM; - goto err; + cli_rsp.op_errno = ENOMEM; + goto errx; } state = frame->root->state; state->xdata = dict; @@ -258,15 +257,16 @@ quotad_aggregator_getlimit (rpcsvc_request_t *req) ret = qd_nameless_lookup (this, frame, &args, state->xdata, quotad_aggregator_getlimit_cbk); if (ret) { - rsp.op_errno = ret; - goto err; + cli_rsp.op_errno = ret; + goto errx; } return ret; err: - cli_rsp.op_ret = -1; cli_rsp.op_errno = op_errno; +errx: + cli_rsp.op_ret = -1; cli_rsp.op_errstr = ""; quotad_aggregator_getlimit_cbk (this, frame, &cli_rsp); |