Message ID | 1447141453-19876-3-git-send-email-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
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 */
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> --- hw/npu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)