diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-30 09:33:59 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-30 09:33:59 -0400 |
commit | 53a43fb5416417474e32120e8fcd8694ec496f4c (patch) | |
tree | 56576f431f22e5ecf32750822f70005cf81f724e /ppsthread.c | |
parent | 4336209683d0f5927e32a4edf9131a17e1618253 (diff) | |
download | gpsd-53a43fb5416417474e32120e8fcd8694ec496f4c.tar.gz |
Remove dead code found by scan-build in ppsthread.c.
PPS observed live on GR601-W.
Diffstat (limited to 'ppsthread.c')
-rw-r--r-- | ppsthread.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ppsthread.c b/ppsthread.c index 50d72ae9..6ab332b4 100644 --- a/ppsthread.c +++ b/ppsthread.c @@ -173,7 +173,6 @@ static int init_kernel_pps(volatile struct pps_thread_t *pps_thread) * This next code block abuses "ret" by storing the filedescriptor * to use for RFC2783 calls. */ - ret = -1; #ifdef __linux__ /* * Some Linuxes, like the RasbPi's, have PPS devices preexisting. @@ -687,7 +686,6 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg) if (990000 < cycle_kpps && 1010000 > cycle_kpps) { /* KPPS passes a basic sanity check */ ok_kpps = true; - log = "KPPS"; } } } |