diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c
index 599741267d46d51493f76d87e5944d6a9c53e4f8..88eef7b98926c08f7d224226455fe51ff458d976 100644
--- a/lustre/mds/mds_reint.c
+++ b/lustre/mds/mds_reint.c
@@ -108,7 +108,7 @@ int mds_finish_transno(struct mds_obd *mds, struct inode *inode, void *handle,
         if (req->rq_export->exp_failed) {
                 CERROR("committing transaction for disconnected client\n");
                 if (handle)
-                        GOTO(out_commit, rc = -EIO);
+                        GOTO(out_commit, rc);
                 RETURN(rc);
         }