projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06644f4
)
pciinit: remove unused variable, old_addr, in pci_set_io_region_addr().
author
Isaku Yamahata
<yamahata@valinux.co.jp>
Mon, 30 Aug 2010 02:32:01 +0000
(11:32 +0900)
committer
Kevin O'Connor
<kevin@koconnor.net>
Fri, 3 Sep 2010 01:16:41 +0000
(21:16 -0400)
old_addr is initialized, but not used.
remove the useless variable.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
src/pciinit.c
patch
|
blob
|
history
diff --git
a/src/pciinit.c
b/src/pciinit.c
index f75e5527c68a8bc37ebf338ee76427cd0aae114a..034642363ecd3114d1dc22e0a872ba00cafe7e2a 100644
(file)
--- a/
src/pciinit.c
+++ b/
src/pciinit.c
@@
-39,12
+39,10
@@
static u32 pci_bar(u16 bdf, int region_num)
static void pci_set_io_region_addr(u16 bdf, int region_num, u32 addr)
{
- u32 ofs
, old_addr
;
+ u32 ofs;
ofs = pci_bar(bdf, region_num);
- old_addr = pci_config_readl(bdf, ofs);
-
pci_config_writel(bdf, ofs, addr);
dprintf(1, "region %d: 0x%08x\n", region_num, addr);
}