summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-09 23:57:32 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-10 00:49:35 +0100
commit3d30d7626d6041a8899137e6f39e6a26cae1f888 (patch)
treea669c3a6b3805a9a14c4c92345f6d535d6171dc6 /device
parentbe8f70ce365dbfff087478ef3d3d90765465bbf2 (diff)
device/dev_pager.c (device_pager_data_request_done): remove unnecessary cast
The argument to trunc_page() is already cast to vm_offset_t in the macro itself. * device/dev_pager.c (device_pager_data_request_done) (trunc_page) (io_data): Don't cast to vm_offset_t.
Diffstat (limited to 'device')
-rw-r--r--device/dev_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/dev_pager.c b/device/dev_pager.c
index 35c79b3..1330037 100644
--- a/device/dev_pager.c
+++ b/device/dev_pager.c
@@ -428,7 +428,7 @@ boolean_t device_pager_data_request_done(io_req_t ior)
size_read = ior->io_count - ior->io_residual;
}
- start_alloc = trunc_page((vm_offset_t)ior->io_data);
+ start_alloc = trunc_page(ior->io_data);
end_alloc = start_alloc + round_page(ior->io_alloc_size);
if (ior->io_error == D_SUCCESS) {