OSDN Git Service

vfio-ccw: Remove pfn_array_table
authorEric Farman <farman@linux.ibm.com>
Thu, 6 Jun 2019 20:28:29 +0000 (22:28 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 17 Jun 2019 11:30:46 +0000 (13:30 +0200)
commite7eaf91b0aad276b164277dd6d20cdf3ee1c77e6
treed41906a41d15ba6e0964d4f4f23d3e472492400f
parent8aabf0edae4a6cc82042785079075aebf7cd5c79
vfio-ccw: Remove pfn_array_table

Now that both CCW codepaths build this nested array:

  ccwchain->pfn_array_table[1]->pfn_array[#idaws/#pages]

We can collapse this into simply:

  ccwchain->pfn_array[#idaws/#pages]

Let's do that, so that we don't have to continually navigate two
nested arrays when the first array always has a count of one.

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