diff options
author | Robert Norris <rw_norris@hotmail.com> | 2017-02-09 23:17:06 +0000 |
---|---|---|
committer | Fred Wright <fw@fwright.net> | 2017-02-09 17:08:22 -0800 |
commit | 08e48a3b0bbb7c240195d918c3521172edeb3d7b (patch) | |
tree | f17c6554114e586ba6bbe54b22dd464ab98fabbc /libgps_json.c | |
parent | 3b49d7a3690a8985da536fdc7dba23a73529df8b (diff) | |
download | gpsd-08e48a3b0bbb7c240195d918c3521172edeb3d7b.tar.gz |
cppcheck: style - remove unused variable.
TESTED:
'scons build-all check' passes.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_json.c b/libgps_json.c index a806c4c4..6a711855 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -149,7 +149,7 @@ static int json_sky_read(const char *buf, struct gps_data_t *gpsdata, {NULL}, /* *INDENT-ON* */ }; - int status, i, j; + int status, i; for (i = 0; i < MAXCHANNELS; i++) { gpsdata->skyview[i].PRN = 0; @@ -162,7 +162,7 @@ static int json_sky_read(const char *buf, struct gps_data_t *gpsdata, gpsdata->satellites_used = 0; gpsdata->satellites_visible = 0; - for (i = j = 0; i < MAXCHANNELS; i++) { + for (i = 0; i < MAXCHANNELS; i++) { if(gpsdata->skyview[i].PRN > 0) gpsdata->satellites_visible++; if (gpsdata->skyview[i].used) { |