futex_requeue_pi_mismatched_ops: Test errno, not ret for EINVAL

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
diff --git a/functional/futex_requeue_pi_mismatched_ops.c b/functional/futex_requeue_pi_mismatched_ops.c
index 7e9ed61..f085767 100644
--- a/functional/futex_requeue_pi_mismatched_ops.c
+++ b/functional/futex_requeue_pi_mismatched_ops.c
@@ -107,7 +107,7 @@
 	 */
 	ret = futex_cmp_requeue_pi(&f1, f1, &f2, 1, 0, FUTEX_PRIVATE_FLAG);
 	if (ret < 0) {
-		if (ret == -EINVAL) {
+		if (errno == EINVAL) {
 			/* 
 			 * The kernel correctly detected the mismatched
 			 * requeue_pi target and aborted. Wake the child with