Whamcloud - gitweb
small fix
authortappro <tappro>
Fri, 23 Jun 2006 15:40:19 +0000 (15:40 +0000)
committertappro <tappro>
Fri, 23 Jun 2006 15:40:19 +0000 (15:40 +0000)
lustre/cmm/cmm_device.c

index c20d911..9e8c87a 100644 (file)
@@ -157,7 +157,7 @@ static int cmm_process_config(const struct lu_context *ctx,
         case LCFG_ADD_MDC:
                 err = cmm_add_mdc(ctx, m, cfg);
                 /* the first ADD_MDC can be counted as setup is finished */
-                if (m->cmm_flags & CMM_INITIALIZED == 0)
+                if ((m->cmm_flags & CMM_INITIALIZED) == 0)
                         m->cmm_flags |= CMM_INITIALIZED;
                 break;
         case LCFG_SETUP: