diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 16:29:12 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 16:29:12 +1100 |
commit | 409c4b8b22d6f917959e5f50ac00c4fe014fb2bd (patch) | |
tree | b84d0cb6bd18494bf379ef807e730cca38ee4ff4 /hw/chiptod.c | |
parent | 42c307bed55181f98aeb38faebea39987192e2cb (diff) | |
download | skiboot-409c4b8b22d6f917959e5f50ac00c4fe014fb2bd.zip skiboot-409c4b8b22d6f917959e5f50ac00c4fe014fb2bd.tar.gz skiboot-409c4b8b22d6f917959e5f50ac00c4fe014fb2bd.tar.bz2 |
llvm-scan-build: fix value stored to tfmr during init is never read
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@linux.vnet.ibm.com>
Diffstat (limited to 'hw/chiptod.c')
-rw-r--r-- | hw/chiptod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/chiptod.c b/hw/chiptod.c index b3faedb..f7427f1 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 { |