diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/swaponoff.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |