aboutsummaryrefslogtreecommitdiff
path: root/hw/npu.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 16:27:49 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 16:27:49 +1100
commit42c307bed55181f98aeb38faebea39987192e2cb (patch)
tree34d865b953790f99f4d1b41e923590bfc4d955f7 /hw/npu.c
parent902cc27d818d343319e12628459e01869a2cf492 (diff)
downloadskiboot-42c307bed55181f98aeb38faebea39987192e2cb.zip
skiboot-42c307bed55181f98aeb38faebea39987192e2cb.tar.gz
skiboot-42c307bed55181f98aeb38faebea39987192e2cb.tar.bz2
llvm-scan-build: fix value stored during init is never read in npu.c
hw/npu.c:796: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/npu.c')
-rw-r--r--hw/npu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/npu.c b/hw/npu.c
index c9bc12b..3649728 100644
--- a/hw/npu.c
+++ b/hw/npu.c
@@ -793,7 +793,7 @@ static int64_t npu_map_pe_dma_window_real(struct phb *phb,
uint64_t pci_mem_size)
{
struct npu *p = phb_to_npu(phb);
- uint64_t end = pci_start_addr + pci_mem_size;
+ uint64_t end;
uint64_t tve;
/* Sanity check. Each PE has one corresponding TVE */