aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 16:30:18 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 16:30:18 +1100
commit0e63e6849ec5fa50a108441382e963b31d1cbc58 (patch)
treee89e2e5d856aa822fdb1abb09633937f61f86d32 /hw
parent409c4b8b22d6f917959e5f50ac00c4fe014fb2bd (diff)
downloadskiboot-0e63e6849ec5fa50a108441382e963b31d1cbc58.zip
skiboot-0e63e6849ec5fa50a108441382e963b31d1cbc58.tar.gz
skiboot-0e63e6849ec5fa50a108441382e963b31d1cbc58.tar.bz2
llvm-scan-build: fix value stored to end during init never read in phb3.c
hw/phb3.c:1067:11: warning: Value stored to 'end' during its initialization is never read uint64_t end = pci_start_addr + pci_mem_size; ^~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/phb3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 411c6e5..87bf470 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -1064,7 +1064,7 @@ static int64_t phb3_map_pe_dma_window_real(struct phb *phb,
uint64_t pci_mem_size)
{
struct phb3 *p = phb_to_phb3(phb);
- uint64_t end = pci_start_addr + pci_mem_size;
+ uint64_t end;
uint64_t tve;
if (pe_num >= PHB3_MAX_PE_NUM ||