mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-19 14:04:17 +03:00
cleanup: drop unused assignments
In all code paths we set a value for these variables, so drop their initial unused assign.
This commit is contained in:
parent
1e3411aa37
commit
b9d3e8c8a8
@ -2646,7 +2646,7 @@ static response dump(lvmetad_state *s)
|
|||||||
|
|
||||||
static response handler(daemon_state s, client_handle h, request r)
|
static response handler(daemon_state s, client_handle h, request r)
|
||||||
{
|
{
|
||||||
response res = { 0 };
|
response res;
|
||||||
lvmetad_state *state = s.private;
|
lvmetad_state *state = s.private;
|
||||||
char prev_token[128] = { 0 };
|
char prev_token[128] = { 0 };
|
||||||
const char *rq;
|
const char *rq;
|
||||||
|
@ -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)
|
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)) {
|
if (*ind && !(*ind % MIN_ARGV_SIZE)) {
|
||||||
newargv = dm_realloc(*cmdargv, (*ind / MIN_ARGV_SIZE + 1) * MIN_ARGV_SIZE * sizeof(char *));
|
newargv = dm_realloc(*cmdargv, (*ind / MIN_ARGV_SIZE + 1) * MIN_ARGV_SIZE * sizeof(char *));
|
||||||
|
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -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 *vg = NULL;
|
||||||
struct volume_group *vg2 = NULL;
|
struct volume_group *vg2 = NULL;
|
||||||
daemon_reply reply = { 0 };
|
daemon_reply reply;
|
||||||
int found;
|
int found;
|
||||||
char uuid[64];
|
char uuid[64];
|
||||||
struct format_instance *fid = NULL;
|
struct format_instance *fid = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user