X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ffsck%2Ffsck.c;h=e8596d90f805df3d35218dc9735cf484016c8f4c;hb=0372cb2bd2342fa5c5585c666f79159a8341f4a6;hp=0b572e59f5ab387a11cfb8e6746a093fae7abd8c;hpb=8501384436b410cb9f5929ef6873c59fac6254be;p=elogind.git diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 0b572e59f..e8596d90f 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -302,15 +302,11 @@ int main(int argc, char *argv[]) { type = udev_device_get_property_value(udev_device, "ID_FS_TYPE"); if (type) { r = fsck_exists(type); - if (r < 0) { - if (r == -ENOENT) { - log_info("fsck.%s doesn't exist, not checking file system on %s", - type, device); - return EXIT_SUCCESS; - } else - log_warning("fsck.%s cannot be used for %s: %s", - type, device, strerror(-r)); - } + if (r == -ENOENT) { + log_info("fsck.%s doesn't exist, not checking file system on %s", type, device); + return EXIT_SUCCESS; + } else if (r < 0) + log_warning("fsck.%s cannot be used for %s: %s", type, device, strerror(-r)); } if (arg_show_progress)