staging: lustre: remove RETURN macro
[deliverable/linux.git] / drivers / staging / lustre / lustre / include / lustre_log.h
index 8f642f3e0105735e0924861f16b2d3c863e71ddc..721aa05dff3b9d3b32d79234bed5e96bd170a9f1 100644 (file)
@@ -471,12 +471,12 @@ static inline int llog_destroy(const struct lu_env *env,
 
        rc = llog_handle2ops(handle, &lop);
        if (rc)
-               RETURN(rc);
+               return rc;
        if (lop->lop_destroy == NULL)
-               RETURN(-EOPNOTSUPP);
+               return -EOPNOTSUPP;
 
        rc = lop->lop_destroy(env, handle);
-       RETURN(rc);
+       return rc;
 }
 
 static inline int llog_next_block(const struct lu_env *env,
@@ -489,13 +489,13 @@ static inline int llog_next_block(const struct lu_env *env,
 
        rc = llog_handle2ops(loghandle, &lop);
        if (rc)
-               RETURN(rc);
+               return rc;
        if (lop->lop_next_block == NULL)
-               RETURN(-EOPNOTSUPP);
+               return -EOPNOTSUPP;
 
        rc = lop->lop_next_block(env, loghandle, cur_idx, next_idx,
                                 cur_offset, buf, len);
-       RETURN(rc);
+       return rc;
 }
 
 static inline int llog_prev_block(const struct lu_env *env,
@@ -507,12 +507,12 @@ static inline int llog_prev_block(const struct lu_env *env,
 
        rc = llog_handle2ops(loghandle, &lop);
        if (rc)
-               RETURN(rc);
+               return rc;
        if (lop->lop_prev_block == NULL)
-               RETURN(-EOPNOTSUPP);
+               return -EOPNOTSUPP;
 
        rc = lop->lop_prev_block(env, loghandle, prev_idx, buf, len);
-       RETURN(rc);
+       return rc;
 }
 
 static inline int llog_connect(struct llog_ctxt *ctxt,
@@ -524,12 +524,12 @@ static inline int llog_connect(struct llog_ctxt *ctxt,
 
        rc = llog_obd2ops(ctxt, &lop);
        if (rc)
-               RETURN(rc);
+               return rc;
        if (lop->lop_connect == NULL)
-               RETURN(-EOPNOTSUPP);
+               return -EOPNOTSUPP;
 
        rc = lop->lop_connect(ctxt, logid, gen, uuid);
-       RETURN(rc);
+       return rc;
 }
 
 /* llog.c */
This page took 0.027692 seconds and 5 git commands to generate.