summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/radeon_cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_cp.c b/sys/dev/pci/drm/radeon_cp.c
index 92fdea4b372..261a08160ee 100644
--- a/sys/dev/pci/drm/radeon_cp.c
+++ b/sys/dev/pci/drm/radeon_cp.c
@@ -773,8 +773,8 @@ radeondrm_setup_pcigart(struct drm_radeon_private *dev_priv)
agi->tbl.fb.bst = dev_priv->bst;
/* XXX write combining */
- if (bus_space_map(agi->tbl.fb.bst, gartaddr, agi->table_size,
- 0, &agi->tbl.fb.bsh) != 0)
+ if ((ret = bus_space_map(agi->tbl.fb.bst, gartaddr,
+ agi->table_size, 0, &agi->tbl.fb.bsh)) != 0)
return (ret);
/* this is a radeon virtual address */