diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-08-30 11:32:01 +0900 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-09-02 21:16:41 -0400 |
commit | eebe949461466c9fdb482a542b0aaa8957b6a62b (patch) | |
tree | 1a13bd6fc2ad55ebdc342aacb2085c53fb75cd9e | |
parent | 06644f4d01111536aea1915c82500c00a5f20c77 (diff) | |
download | seabios-eebe949461466c9fdb482a542b0aaa8957b6a62b.tar.gz |
pciinit: remove unused variable, old_addr, in pci_set_io_region_addr().
old_addr is initialized, but not used.
remove the useless variable.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
-rw-r--r-- | src/pciinit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pciinit.c b/src/pciinit.c index f75e5527..03464236 100644 --- 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); } |