vfio/ccw: remove unnecessary malloc alignment
authorEric Farman <farman@linux.ibm.com>
Thu, 22 Oct 2020 14:54:32 +0000 (16:54 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:07 +0000 (14:34 +0100)
commit4b946d65b8aa0071dbbc54b35b8502fa99c1ee22
tree952ec21fdaffaac2c3ec123ba2ecb204b1d123dd
parenta4c6040472ba638f2719f371fad92c83365f7332
vfio/ccw: remove unnecessary malloc alignment

Everything about this allocation is harder than necessary,
since the memory allocation is already aligned to our needs.
Break them apart for readability, instead of doing the
funky arithmetic.

Of the structures that are involved, only ch_ccw needs the
GFP_DMA flag, so the others can be allocated without it.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/vfio_ccw_cp.c