From b78d86b400d6e7070cbeb0efd39194248232257c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 17 May 2012 03:07:46 -0400 Subject: Clean up from cppcheck warnings. All regression tests pass. --- isgps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'isgps.c') diff --git a/isgps.c b/isgps.c index 27cf92e1..9d465479 100644 --- a/isgps.c +++ b/isgps.c @@ -180,8 +180,6 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session, bool(*length_check) (struct gps_packet_t *), size_t maxlen, unsigned int c) { - enum isgpsstat_t res; - /* ASCII characters 64-127, @ through DEL */ if ((c & MAG_TAG_MASK) != MAG_TAG_DATA) { gpsd_report(ISGPS_ERRLEVEL_BASE + 1, @@ -222,6 +220,8 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session, } /* end while */ } if (session->isgps.locked) { + enum isgpsstat_t res; + res = ISGPS_SYNC; if (session->isgps.curr_offset > 0) { -- cgit v1.2.1