s390/cio: Use cpa range elsewhere within vfio-ccw
authorEric Farman <farman@linux.ibm.com>
Fri, 22 Feb 2019 18:39:41 +0000 (19:39 +0100)
committerCornelia Huck <cohuck@redhat.com>
Tue, 26 Feb 2019 17:30:13 +0000 (18:30 +0100)
commit2904337fd981217784c2820abdee537aa0c70330
treeeb59a48de72f12eaa13a8dd0cf74d2a4e4900758
parent48bd0eee8eca0920b6a15c4663e02ea434fe1fdf
s390/cio: Use cpa range elsewhere within vfio-ccw

Since we have a little function to see whether a channel
program address falls within a range of CCWs, let's use
it in the other places of code that make these checks.

(Why isn't ccw_head fully removed?  Well, because this
way some longs lines don't have to be reflowed.)

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