summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-08-11 21:53:29 +0200
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-08-11 21:53:29 +0200
commit781f7efbacaf1cef5efb1e09f53474797b243b6b (patch)
tree441326ebd4d94ed2363d1e7ca14de612305e96dd /lib.c
parentsysfs: Avoid if and return on the same line (diff)
downloadmdadm-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.c5
1 files changed, 3 insertions, 2 deletions
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);