]> git.neil.brown.name Git - mdadm.git/commitdiff
lib: Avoid if and return on the same line
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 11 Aug 2016 19:53:29 +0000 (15:53 -0400)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 11 Aug 2016 19:53:29 +0000 (15:53 -0400)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
lib.c

diff --git a/lib.c b/lib.c
index 3ee7659b7b43ac7e80de8ecd9086765b7ddcaeda..6f120b9bb41cfc6783cdf428c7f7162c352a4017 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -226,7 +226,7 @@ char *map_dev_preferred(int major, int minor, int create,
        int did_check = 0;
 
        if (major == 0 && minor == 0)
-                       return NULL;
+               return NULL;
 
  retry:
        if (!devlist_ready) {
@@ -464,7 +464,8 @@ char *conf_line(FILE *file)
        char *list;
 
        w = conf_word(file, 1);
-       if (w == NULL) return NULL;
+       if (w == NULL)
+               return NULL;
 
        list = dl_strdup(w);
        free(w);