mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Remove unneeded assignments
Variables have (or will have) those values set.
This commit is contained in:
parent
3a8b6a9948
commit
a6292f2a6d
@ -372,7 +372,7 @@ static int _clog_ctr(char *uuid, uint64_t luid,
|
||||
enum sync log_sync = DEFAULTSYNC;
|
||||
uint32_t block_on_error = 0;
|
||||
|
||||
int disk_log = 0;
|
||||
int disk_log;
|
||||
char disk_path[128];
|
||||
int unlink_path = 0;
|
||||
long page_size;
|
||||
|
@ -448,7 +448,7 @@ static int _get_status(struct message_data *message_data)
|
||||
{
|
||||
struct dm_event_daemon_message *msg = message_data->msg;
|
||||
struct thread_status *thread;
|
||||
int i = 0, j = 0;
|
||||
int i, j;
|
||||
int ret = -1;
|
||||
int count = dm_list_size(&_thread_registry);
|
||||
int size = 0, current = 0;
|
||||
@ -1170,8 +1170,6 @@ static int _get_registered_dev(struct message_data *message_data, int next)
|
||||
if (!hit)
|
||||
goto out;
|
||||
|
||||
thread = hit;
|
||||
|
||||
while (1) {
|
||||
if (dm_list_end(&_thread_registry, &thread->list))
|
||||
goto out;
|
||||
|
@ -739,10 +739,6 @@ static int _deps(struct dm_task **dmt, struct dm_pool *mem, uint32_t major, uint
|
||||
*deps = NULL;
|
||||
info->major = major;
|
||||
info->minor = minor;
|
||||
info->exists = 0;
|
||||
info->live_table = 0;
|
||||
info->inactive_table = 0;
|
||||
info->read_only = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ static char *_list_args(const char *text, int state)
|
||||
/* Initialise if this is a new completion attempt */
|
||||
if (!state) {
|
||||
char *s = rl_line_buffer;
|
||||
int j = 0;
|
||||
int j;
|
||||
|
||||
match_no = 0;
|
||||
com = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user