From: Jes Sorensen Date: Thu, 11 Aug 2016 19:53:29 +0000 (-0400) Subject: lib: Avoid if and return on the same line X-Git-Tag: mdadm-4.0~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=781f7efbacaf1cef5efb1e09f53474797b243b6b;p=thirdparty%2Fmdadm.git lib: Avoid if and return on the same line Signed-off-by: Jes Sorensen --- diff --git a/lib.c b/lib.c index 3ee7659b..6f120b9b 100644 --- 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);