diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 16:27:49 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 16:27:49 +1100 |
commit | 42c307bed55181f98aeb38faebea39987192e2cb (patch) | |
tree | 34d865b953790f99f4d1b41e923590bfc4d955f7 /hw/npu.c | |
parent | 902cc27d818d343319e12628459e01869a2cf492 (diff) | |
download | skiboot-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |