[Skiboot] [PATCH 3/7] llvm-scan-build: fix value stored to tfmr during init is never read
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 10 18:44:09 AEDT 2015
hw/chiptod.c:551:11: warning: Value stored to 'tfmr' during its initialization is never read
uint64_t tfmr = mfspr(SPR_TFMR);
^~~~ ~~~~~~~~~~~~~~~
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
hw/chiptod.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/chiptod.c b/hw/chiptod.c
index b3faedbe7784..f7427f16d866 100644
--- a/hw/chiptod.c
+++ b/hw/chiptod.c
@@ -548,7 +548,7 @@ static bool chiptod_mod_tb(void)
static bool chiptod_interrupt_check(void)
{
- uint64_t tfmr = mfspr(SPR_TFMR);
+ uint64_t tfmr;
uint64_t timeout = 0;
do {
--
2.1.4
More information about the Skiboot
mailing list