summaryrefslogtreecommitdiff
path: root/linux-core/xgi_pcie.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_pcie.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_pcie.c')
-rw-r--r--linux-core/xgi_pcie.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index d9da30e8..1a4d8e12 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -906,7 +906,8 @@ void xgi_pcie_free(xgi_info_t * info, unsigned long bus_addr)
* given a bus address, fid the pcie mem block
* uses the bus address as the key.
*/
-void *xgi_find_pcie_block(xgi_info_t * info, unsigned long address)
+struct xgi_pcie_block_s *xgi_find_pcie_block(xgi_info_t * info,
+ unsigned long address)
{
struct list_head *used_list;
xgi_pcie_block_t *block;