mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-31 09:49:29 +03:00
cleanup: reindent
Save some code lines.
This commit is contained in:
@ -583,7 +583,7 @@ int module_present(struct cmd_context *cmd, const char *target_name)
|
||||
int ret = 0;
|
||||
#ifdef MODPROBE_CMD
|
||||
char module[128];
|
||||
const char *argv[3];
|
||||
const char *argv[] = { MODPROBE_CMD, module, NULL };
|
||||
|
||||
if (dm_snprintf(module, sizeof(module), "dm-%s", target_name) < 0) {
|
||||
log_error("module_present module name too long: %s",
|
||||
@ -591,10 +591,6 @@ int module_present(struct cmd_context *cmd, const char *target_name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
argv[0] = MODPROBE_CMD;
|
||||
argv[1] = module;
|
||||
argv[2] = NULL;
|
||||
|
||||
ret = exec_cmd(cmd, argv, NULL, 0);
|
||||
#endif
|
||||
return ret;
|
||||
|
@ -40,7 +40,8 @@ static int _monitor_lvs_in_vg(struct cmd_context *cmd,
|
||||
if (!monitor_dev_for_events(cmd, lv, 0, reg)) {
|
||||
r = 0;
|
||||
continue;
|
||||
} else
|
||||
}
|
||||
|
||||
(*count)++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user