aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powermac
diff options
context:
space:
mode:
authorlinas <linas@austin.ibm.com>2005-12-05 20:37:35 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-08 22:52:04 -0500
commite07102db63d10d9f9d94d21dfdb1178e65154b9e (patch)
treef73f504b9879468b9d5d98770dfacf4a989f113d /arch/powerpc/platforms/powermac
parent398f68580f3edd99728028facf571e4a07f9a035 (diff)
[PATCH] powerpc: minor cleanup of void ptr deref
Minor: use macro to perform void pointer deref; this may someday help avoid pointer typecasting errors. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/powermac')
-rw-r--r--arch/powerpc/platforms/powermac/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/pci.c b/arch/powerpc/platforms/powermac/pci.c
index 443be526cde7..e0b66f55a5f8 100644
--- a/arch/powerpc/platforms/powermac/pci.c
+++ b/arch/powerpc/platforms/powermac/pci.c
@@ -326,7 +326,7 @@ static int u3_ht_skip_device(struct pci_controller *hose,
326 else 326 else
327 busdn = hose->arch_data; 327 busdn = hose->arch_data;
328 for (dn = busdn->child; dn; dn = dn->sibling) 328 for (dn = busdn->child; dn; dn = dn->sibling)
329 if (dn->data && PCI_DN(dn)->devfn == devfn) 329 if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn)
330 break; 330 break;
331 if (dn == NULL) 331 if (dn == NULL)
332 return -1; 332 return -1;