Whamcloud - gitweb
LU-3835 hsm: add missing braces to ct_copy_attr()
[fs/lustre-release.git] / lustre / quota / qsd_lib.c
index 2a665cc..dfbf8a2 100644 (file)
@@ -535,7 +535,7 @@ struct qsd_instance *qsd_init(const struct lu_env *env, char *svname,
        /* only configure qsd for MDT & OST */
        type = server_name2index(svname, &idx, NULL);
        if (type != LDD_F_SV_TYPE_MDT && type != LDD_F_SV_TYPE_OST)
-               RETURN(ERR_PTR(-EINVAL));
+               RETURN(NULL);
 
        /* allocate qsd instance */
        OBD_ALLOC_PTR(qsd);