summaryrefslogtreecommitdiffstats
path: root/sys/dev/hfa/fore_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hfa/fore_init.c')
-rw-r--r--sys/dev/hfa/fore_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hfa/fore_init.c b/sys/dev/hfa/fore_init.c
index 1a3e695..6124bda 100644
--- a/sys/dev/hfa/fore_init.c
+++ b/sys/dev/hfa/fore_init.c
@@ -360,8 +360,8 @@ fore_get_prom(fup)
cqp = hcp->hcq_cpelem;
(*hcp->hcq_status) = QSTAT_PENDING;
- fup->fu_promd = (Fore_prom *)vtophys(fup->fu_prom);
- if (fup->fu_promd == NULL) {
+ fup->fu_promd = vtophys(fup->fu_prom);
+ if (fup->fu_promd == 0) {
fup->fu_stats->st_drv.drv_cm_nodma++;
return;
}
OpenPOWER on IntegriCloud