diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-09 23:57:32 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-10 00:49:35 +0100 |
commit | 3d30d7626d6041a8899137e6f39e6a26cae1f888 (patch) | |
tree | a669c3a6b3805a9a14c4c92345f6d535d6171dc6 /device | |
parent | be8f70ce365dbfff087478ef3d3d90765465bbf2 (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.c | 2 |
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) { |