summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
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);