diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index acdb67729..75487267b 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -116,9 +116,8 @@ static int swap_enable_disable(char *device) } } - if (err) { - if (!quiet) - bb_simple_perror_msg(device); + if (err && !quiet) { + bb_simple_perror_msg(device); return 1; } return 0;