tree-wide: assorted coccinelle fixes
This commit is contained in:
@@ -378,14 +378,13 @@ static int create_disk(
|
||||
else
|
||||
fprintf(f, "Requires=%s\n", unit);
|
||||
|
||||
if (umount_unit) {
|
||||
if (umount_unit)
|
||||
fprintf(f,
|
||||
"Wants=%s\n"
|
||||
"Before=%s\n",
|
||||
umount_unit,
|
||||
umount_unit
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!nofail)
|
||||
|
||||
@@ -832,10 +832,9 @@ static int run(int argc, char *argv[]) {
|
||||
if (argc <= 1)
|
||||
return help();
|
||||
|
||||
if (argc < 3) {
|
||||
log_error("This program requires at least two arguments.");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (argc < 3)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||
"This program requires at least two arguments.");
|
||||
|
||||
log_setup_service();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user