]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck: coding style cleanup
authorKarel Zak <kzak@redhat.com>
Fri, 16 Feb 2018 09:49:24 +0000 (10:49 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Feb 2018 09:50:14 +0000 (10:50 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.c

index 8a07bc272dadd2eb73b609faf4aa129d84964d6c..354f1309d6b8a00ee86f782b466ca0166acb363d 100644 (file)
@@ -554,10 +554,12 @@ static char *find_fsck(const char *type)
                xasprintf(&prog, tpl, s, type);
                if (access(prog, X_OK) == 0)
                        break;
-               free(prog); prog = NULL;
+               free(prog);
+               prog = NULL;
        }
+
        free(p);
-       return(prog);
+       return prog;
 }
 
 static int progress_active(void)