Whamcloud - gitweb
LU-13723 lustre: Convert ERR_PTR(PTR_ERR()) to ERR_CAST()
[fs/lustre-release.git] / lustre / obdclass / dt_object.c
index d334398..e14f216 100644 (file)
@@ -234,7 +234,7 @@ struct dt_object *dt_locate_at(const struct lu_env *env,
 
        lo = lu_object_find_at(env, top_dev, fid, conf);
        if (IS_ERR(lo))
-               return ERR_PTR(PTR_ERR(lo));
+               return ERR_CAST(lo);
 
        LASSERT(lo != NULL);