staging/lustre/ldlm: Fix Multiple Assignments
[deliverable/linux.git] / drivers / staging / lustre / lustre / ldlm / ldlm_lockd.c
index ab739f079a4872c437e777997eb42166e410c90e..3303ffabb17c783a4e42d4e35eb339ccd01f3e67 100644 (file)
@@ -1011,9 +1011,11 @@ static int ldlm_setup(void)
                blp->blp_min_threads = LDLM_NTHRS_INIT;
                blp->blp_max_threads = LDLM_NTHRS_MAX;
        } else {
-               blp->blp_min_threads = blp->blp_max_threads =
-                       min_t(int, LDLM_NTHRS_MAX, max_t(int, LDLM_NTHRS_INIT,
-                                                        ldlm_num_threads));
+               blp->blp_min_threads = min_t(int, LDLM_NTHRS_MAX,
+                                            max_t(int, LDLM_NTHRS_INIT,
+                                                  ldlm_num_threads));
+
+               blp->blp_max_threads = blp->blp_min_threads;
        }
 
        for (i = 0; i < blp->blp_min_threads; i++) {
This page took 0.026302 seconds and 5 git commands to generate.