[Skiboot] [PATCH 2/7] llvm-scan-build: fix value stored during init is never read in npu.c
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 10 18:44:08 AEDT 2015
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 at linux.vnet.ibm.com>
---
hw/npu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/npu.c b/hw/npu.c
index c9bc12ba8aa8..3649728b8726 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 */
--
2.1.4
More information about the Skiboot
mailing list