Whamcloud - gitweb
LU-4048 build: fix 'control flow' errors
[fs/lustre-release.git] / lustre / mgs / mgs_llog.c
index f9cb376..22e0e8d 100644 (file)
@@ -114,7 +114,8 @@ int class_dentry_readdir(const struct lu_env *env,
 next:
                rc = iops->next(env, it);
        } while (rc == 0);
-       rc = 0;
+       if (rc > 0)
+               rc = 0;
 
        iops->put(env, it);