Commit 5223bee8 authored by Eric Farman's avatar Eric Farman Committed by Cornelia Huck

vfio-ccw: Remove copy_ccw_from_iova()

Just to keep things tidy.
Signed-off-by: default avatarEric Farman <farman@linux.ibm.com>
Message-Id: <20190618202352.39702-6-farman@linux.ibm.com>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Reviewed-by: default avatarFarhan Ali <alifm@linux.ibm.com>
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 7f8e89a8
...@@ -228,17 +228,6 @@ static long copy_from_iova(struct device *mdev, ...@@ -228,17 +228,6 @@ static long copy_from_iova(struct device *mdev,
return l; return l;
} }
static long copy_ccw_from_iova(struct channel_program *cp,
struct ccw1 *to, u64 iova,
unsigned long len)
{
int ret;
ret = copy_from_iova(cp->mdev, to, iova, len * sizeof(struct ccw1));
return ret;
}
/* /*
* Helpers to operate ccwchain. * Helpers to operate ccwchain.
*/ */
...@@ -435,7 +424,8 @@ static int ccwchain_handle_ccw(u32 cda, struct channel_program *cp) ...@@ -435,7 +424,8 @@ static int ccwchain_handle_ccw(u32 cda, struct channel_program *cp)
int len; int len;
/* Copy 2K (the most we support today) of possible CCWs */ /* Copy 2K (the most we support today) of possible CCWs */
len = copy_ccw_from_iova(cp, cp->guest_cp, cda, CCWCHAIN_LEN_MAX); len = copy_from_iova(cp->mdev, cp->guest_cp, cda,
CCWCHAIN_LEN_MAX * sizeof(struct ccw1));
if (len) if (len)
return len; return len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment