]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-ccw: Adjust the first IDAW outside of the nested loops
authorEric Farman <farman@linux.ibm.com>
Thu, 6 Jun 2019 20:28:28 +0000 (22:28 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 17 Jun 2019 11:30:25 +0000 (13:30 +0200)
commit1d856782156dd636cb3f08321de7de27d2c25fe7
tree88bf05ae764f131bb329a0a6e2b3a5bd0ba3d7f5
parent0ade70fca4386a5cbac3030139a34b6debb46801
vfio-ccw: Adjust the first IDAW outside of the nested loops

Now that pfn_array_table[] is always an array of 1, it seems silly to
check for the very first entry in an array in the middle of two nested
loops, since we know it'll only ever happen once.

Let's move this outside the loops to simplify things, even though
the "k" variable is still necessary.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190606202831.44135-7-farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c