summaryrefslogtreecommitdiffstats
path: root/lib/pci_iomap.c
diff options
context:
space:
mode:
authorJan Höppner <hoeppner@linux.vnet.ibm.com>2015-09-21 17:32:11 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-03-07 13:11:58 +0100
commit8542885bf5338bfccf779868a5d143620e794ff9 (patch)
tree5c103a4fd91ff9cd2dba328b629e06e32d29024c /lib/pci_iomap.c
parent46d1c03c82a717735dddc7a47f321abaccbcec78 (diff)
downloadblackbird-op-linux-8542885bf5338bfccf779868a5d143620e794ff9.tar.gz
blackbird-op-linux-8542885bf5338bfccf779868a5d143620e794ff9.zip
s390/dasd: Simplify code in format logic
Currently, dasd_format is calling the format logic of a DASD discipline with PAV enabled. If that fails with an error code of -EAGAIN the value of retries is decremented and the discipline function is called with PAV turned off. The loop is supposed to try this up to 255 times until success. However, -EAGAIN can only occur once here and therefore the loop will never reach the 255 retries. So, replace the unnecessarily complicated loop logic and simply try again without PAV enabled in case of an -EAGAIN error. Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'lib/pci_iomap.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud