[Skiboot] [PATCH 4/7] llvm-scan-build: fix value stored to end during init never read in phb3.c

Stewart Smith stewart at linux.vnet.ibm.com
Tue Nov 10 18:44:10 AEDT 2015


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 at linux.vnet.ibm.com>
---
 hw/phb3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/phb3.c b/hw/phb3.c
index 411c6e529043..87bf470ec031 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 ||
-- 
2.1.4



More information about the Skiboot mailing list