diff --git a/lustre/lov/lov_qos.c b/lustre/lov/lov_qos.c
index 0080deaf872aaee5dea9fe03171942d1ff4020ba..d37cfd75df3c8a9d737b0c79600b3d24175ccbd4 100644
--- a/lustre/lov/lov_qos.c
+++ b/lustre/lov/lov_qos.c
@@ -658,7 +658,7 @@ static int alloc_qos(struct obd_export *exp, int *idx_arr, int *stripe_cnt,
         ENTRY;
 
         if (stripe_cnt_min < 1)
-                GOTO(out, rc = -EINVAL);
+                RETURN(-EINVAL);
 
         lov_getref(exp->exp_obd);
         down_write(&lov->lov_qos.lq_rw_sem);