summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-23 13:01:48 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-23 13:01:48 -0400
commit65b2c6037499d3e938a4a5c5bdf03ffddb90ba45 (patch)
tree2809d198732a5de08b1e221a03746033abe87f13 /gpsd.c
parent52b3aba3a71d53dd4605be85f7cc8311a843bbde (diff)
downloadgpsd-65b2c6037499d3e938a4a5c5bdf03ffddb90ba45.tar.gz
Minor cleanup on Gleb Smirnoff's patch. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gpsd.c b/gpsd.c
index fb59399f..133f7534 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -2310,9 +2310,8 @@ int main(int argc, char *argv[])
if (!allocated_device(device))
continue;
- if (device_needed != true)
- for (sub = subscribers; sub < subscribers + MAXSUBSCRIBERS;
- sub++) {
+ if (!device_needed)
+ for (sub=subscribers; sub<subscribers+MAXSUBSCRIBERS; sub++) {
if (sub->active == 0)
continue;
device_needed = subscribed(sub, device);