diff options
author | 2009-06-07 02:04:34 +0000 | |
---|---|---|
committer | 2009-06-07 02:04:34 +0000 | |
commit | c8bf05785c01e64a1f0b2dbfc5f54b402c1ec46b (patch) | |
tree | 4f4c205b60a6a6c0d8a91b3da2149e7bb62808b1 | |
parent | extend uvm_page_physload to have the ability to add "device" pages to the (diff) | |
download | wireguard-openbsd-c8bf05785c01e64a1f0b2dbfc5f54b402c1ec46b.tar.xz wireguard-openbsd-c8bf05785c01e64a1f0b2dbfc5f54b402c1ec46b.zip |
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.c | 4 |
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 */ |