]> git.sur5r.net Git - i3/i3status/blobdiff - src/print_disk_info.c
removing Yoda-Style
[i3/i3status] / src / print_disk_info.c
index 4ed2f22c7bfee30a44db1ed520fc5e26eac628be..e225923a03be01510999f0b48ecb1533766ceb06 100644 (file)
@@ -131,7 +131,7 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch
                 struct mntent *m;
                 bool found = false;
 
-                while (NULL != (m = getmntent(mntentfile))) {
+                while ((m = getmntent(mntentfile)) != NULL) {
                         if (strcmp(m->mnt_dir, path) == 0) {
                                 found = true;
                                 break;