summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2009-06-07 02:04:35 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2009-06-07 02:04:35 +0000
commite84e71fddd573dcb11f739875f38e8d36d9582cb (patch)
tree00e692eb9d0c8065766dd580bc791e03d496b71a
parentde04e97dc207dd91524400f05ce8692dc4886fb9 (diff)
fix uninitialized or undefined value returned to caller
found by LLVM/Clang Static Analyzer. with a remind from oga@ about 80 cols wrap ok oga@
-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 */