master - cleanup: drop unused assignments
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b9d3e8c8a8cd5faf23e30336303f6aeef5c32804 Commit: b9d3e8c8a8cd5faf23e30336303f6aeef5c32804 Parent: 1e3411aa3724ee9ee32f5cb4378526b9c355854d Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jun 30 10:45:52 2016 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Jul 1 00:44:48 2016 +0200
cleanup: drop unused assignments
In all code paths we set a value for these variables, so drop their initial unused assign.
--- daemons/lvmetad/lvmetad-core.c | 2 +- daemons/lvmpolld/lvmpolld-cmd-utils.c | 2 +- lib/cache/lvmetad.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
daemons/lvmetad/lvmetad-core.c +1 -1
@@ -2646,7 +2646,7 @@ static response dump(lvmetad_state *s)static response handler (daemon_state s,client_handle h,request r) { -response res = {0 }; +response res;lvmetad_state *state = s.private;char prev_token[128 ] = {0 };const char *rq;
daemons/lvmpolld/lvmpolld-cmd-utils.c +1 -1
@@ -31,7 +31,7 @@ const char *polling_op(enum poll_type type)static int add_to_cmd_arr (const char ***cmdargv,const char *str,unsigned *ind) { -const char **newargv = *cmdargv; +const char **newargv;if (*ind && !(*ind %MIN_ARGV_SIZE )) { newargv =dm_realloc (*cmdargv, (*ind /MIN_ARGV_SIZE +1 ) *MIN_ARGV_SIZE *sizeof (char *));
lib/cache/lvmetad.c +1 -1
@@ -955,7 +955,7 @@ struct volume_group *lvmetad_vg_lookup(struct cmd_context *cmd, const char *vgna {struct volume_group *vg =NULL ;struct volume_group *vg2 =NULL ; -daemon_reply reply = {0 }; +daemon_reply reply;int found;char uuid[64 ];struct format_instance *fid =NULL ;