Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
Cleaning dead initializations.

Change-Id: I53ae506593cd10441d61df3b2c9249544a7871f7
BUG: 1254067
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-on: http://review.gluster.org/11932
Tested-by: Prasanna Kumar Kalever <pkalever@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
  • Loading branch information
Prasanna Kumar Kalever authored and kalebskeithley committed May 6, 2016
1 parent ef0db52 commit db610ee
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions cli/src/cli-rpc-ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -2067,8 +2067,6 @@ gf_cli_ganesha_cbk (struct rpc_req *req, struct iovec *iov,
int ret = -1;
dict_t *dict = NULL;
char *help_str = NULL;
char msg[1024] = {0,};
char tmp_str[512] = {0,};

GF_ASSERT (myframe);

Expand Down
2 changes: 0 additions & 2 deletions rpc/rpc-lib/src/rpc-clnt-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ rpc_clnt_ping_cbk (struct rpc_req *req, struct iovec *iov, int count,
xlator_t *this = NULL;
rpc_clnt_connection_t *conn = NULL;
call_frame_t *frame = NULL;
struct timespec timeout = {0, };
int unref = 0;

if (!myframe) {
Expand Down Expand Up @@ -264,7 +263,6 @@ rpc_clnt_start_ping (void *rpc_ptr)
{
struct rpc_clnt *rpc = NULL;
rpc_clnt_connection_t *conn = NULL;
struct timespec timeout = {0, };
int frame_count = 0;
int unref = 0;

Expand Down
1 change: 0 additions & 1 deletion xlators/features/changelog/lib/src/gf-changelog-reborp.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ gf_changelog_reborp_rpcsvc_notify (rpcsvc_t *rpc, void *mydata,
xlator_t *this = NULL;
gf_private_t *priv = NULL;
gf_changelog_t *entry = NULL;
char sock[UNIX_PATH_MAX] = {0,};

if (!(event == RPCSVC_EVENT_ACCEPT ||
event == RPCSVC_EVENT_DISCONNECT))
Expand Down
1 change: 0 additions & 1 deletion xlators/features/quota/src/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -4293,7 +4293,6 @@ quota_statfs_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int64_t blocks = 0;
quota_inode_ctx_t *ctx = NULL;
int ret = 0;
quota_local_t *local = frame->local;

inode = cookie;

Expand Down

0 comments on commit db610ee

Please sign in to comment.