mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
minor cleanup
This commit is contained in:
parent
871e7fcd1a
commit
b0e25eef22
@ -102,9 +102,11 @@ int main(int argc, char **argv)
|
||||
|
||||
if (list) {
|
||||
do {
|
||||
ret = dm_get_next_registered_device(&dso_name, &device, &events);
|
||||
if (!ret) {
|
||||
printf("%s %s 0x%x\n", dso_name, device, events);
|
||||
if (!(ret= dm_get_next_registered_device(&dso_name,
|
||||
&device,
|
||||
&events))) {
|
||||
printf("%s %s 0x%x\n",
|
||||
dso_name, device, events);
|
||||
free(dso_name);
|
||||
free(device);
|
||||
}
|
||||
@ -112,6 +114,7 @@ int main(int argc, char **argv)
|
||||
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
if ((ret = reg ? dm_register_for_event(dso_name, device, events) :
|
||||
dm_unregister_for_event(dso_name, device, events))) {
|
||||
fprintf(stderr, "Failed to %sregister %s: %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user