diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-08-11 21:53:29 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-08-11 21:53:29 +0200 |
commit | 781f7efbacaf1cef5efb1e09f53474797b243b6b (patch) | |
tree | 441326ebd4d94ed2363d1e7ca14de612305e96dd /lib.c | |
parent | sysfs: Avoid if and return on the same line (diff) | |
download | mdadm-781f7efbacaf1cef5efb1e09f53474797b243b6b.tar.xz mdadm-781f7efbacaf1cef5efb1e09f53474797b243b6b.zip |
lib: Avoid if and return on the same line
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |