[CIFS] Slightly simplify wait_for_free_request(), remove an unnecessary "else" branch

This is no functional change, because in the "if" branch we do an early
"return 0;".

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Volker Lendecke
2008-12-08 20:59:39 +00:00
committed by Steve French
parent 8fbbd365cc
commit 27a97a613b

View File

@@ -344,7 +344,9 @@ static int wait_for_free_request(struct cifsSesInfo *ses, const int long_op)
if (long_op == CIFS_ASYNC_OP) {
/* oplock breaks must not be held up */
atomic_inc(&ses->server->inFlight);
} else {
return 0;
}
spin_lock(&GlobalMid_Lock);
while (1) {
if (atomic_read(&ses->server->inFlight) >=
@@ -376,7 +378,6 @@ static int wait_for_free_request(struct cifsSesInfo *ses, const int long_op)
break;
}
}
}
return 0;
}