]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
util: Never have if and return on the same line
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 11 Aug 2016 19:48:47 +0000 (15:48 -0400)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 11 Aug 2016 19:48:47 +0000 (15:48 -0400)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
util.c

diff --git a/util.c b/util.c
index 31c407a6489b523dce422c706018607095cbdb62..9fcc4b0d4f9d121996ec4aca67540397ce655e41 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1039,7 +1039,8 @@ int dev_open(char *dev, int flags)
        int major;
        int minor;
 
-       if (!dev) return -1;
+       if (!dev)
+               return -1;
        flags |= O_DIRECT;
 
        if (get_maj_min(dev, &major, &minor)) {