Increase readability for load_uvmexp return
authorAaron Marcher <me@drkhsh.at>
Sun, 20 May 2018 22:29:54 +0000 (00:29 +0200)
committerAaron Marcher <me@drkhsh.at>
Sun, 20 May 2018 22:29:54 +0000 (00:29 +0200)
components/ram.c

index f653156e4e6e2da7326051a071962190c4e5d364..cba22a164eb3f87811c6a2f7b9145945cf8aa237 100644 (file)
 
                size = sizeof(*uvmexp);
 
-               return sysctl(uvmexp_mib, 2, uvmexp, &size, NULL, 0) >= 0 ? 1 : 0;
+               if (sysctl(uvmexp_mib, 2, uvmexp, &size, NULL, 0) >= 0) {
+                       return 1;
+               }
+
+               return 0;
        }
 
        const char *