X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ffsck%2Ffsck.c;fp=src%2Ffsck%2Ffsck.c;h=e8596d90f805df3d35218dc9735cf484016c8f4c;hp=0b572e59f5ab387a11cfb8e6746a093fae7abd8c;hb=571d0134bd464444567cf4eb0d2ed8df40045f36;hpb=fbe1a1a94f19112d7e5d60c40d87487ad24e2ce4 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)