Skip to contentSkip to conversation

pciinit: remove unused variable, old_addr, in pci_set_io_region_addr().

PATCH In review Isaku Yamahata 2 participants 2 messages Aug 30, 2010 – Sep 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pciinit: remove unused variable, old_addr, in pci_set_io_region_addr().

old_addr is initialized, but not used.
remove the useless variable.

---
 src/pciinit.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
src/pciinit.c +1 -3
index f75e552..0346423 100644
@@ -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);
 }
Signature · 1 line
1.7.1.1