summaryrefslogtreecommitdiff
path: root/linux-core/xgi_drv.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-06-29 09:30:02 -0700
committerIan Romanick <idr@us.ibm.com>2007-06-29 09:30:02 -0700
commit33b8476dfb0f9b5045103c3a9781ba82bcae4a9d (patch)
tree913c6e1af539aae520c7418e68ad9a2164fa18ae /linux-core/xgi_drv.c
parent475c1e67bacabb89c568c7482991451d223c53ae (diff)
Fix return type of xgi_find_pcie_block.
This function used to return 'void *', which was then cast to 'xgi_pcie_block_t *' at the only caller. I changed the return type to 'struct xgi_pcie_block_s *' and removed the explicit cast.
Diffstat (limited to 'linux-core/xgi_drv.c')
-rw-r--r--linux-core/xgi_drv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index 75204283..a01b3c22 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -730,10 +730,7 @@ int xgi_kern_mmap(struct file *filp, struct vm_area_struct *vma)
(info, XGI_VMA_OFFSET(vma), vma->vm_end - vma->vm_start)) {
xgi_down(info->pcie_sem);
- block =
- (xgi_pcie_block_t *) xgi_find_pcie_block(info,
- XGI_VMA_OFFSET
- (vma));
+ block = xgi_find_pcie_block(info, XGI_VMA_OFFSET(vma));
if (block == NULL) {
XGI_ERROR("couldn't find pre-allocated PCIE memory!\n");