s390/qdio: fix double return code evaluation
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 29 Jul 2016 12:00:27 +0000 (14:00 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 8 Aug 2016 13:41:34 +0000 (15:41 +0200)
commitddebf6612c5dcc479725867b9fd9a4d98f41350f
tree9b3e4bbf7df3c0c8b6260a1a3b08582ce61bf3eb
parenta48ed867153c6d2f6d058267213a82dbd8b6737a
s390/qdio: fix double return code evaluation

qdio sometimes checks return codes twice. First with the ccw device's
lock held and then a 2nd time after the lock is released. Simplify
the code by releasing the lock earlier and unify the return code
evaluation.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_main.c