summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-03-24 16:44:06 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-03-24 16:44:06 -0400
commit558c845f67e8555344fcbef5dbbe925606dc6ee7 (patch)
treef0cd96645f29f3e7794aea61b6c8089ce59c3dc1 /gpsd.c
parente4e879b72fda090ba7a6178fdc8d85e4c6a4f478 (diff)
downloadgpsd-558c845f67e8555344fcbef5dbbe925606dc6ee7.tar.gz
Code simplification. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 69dadc59..6af88577 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -791,7 +791,7 @@ static /*@null@*/struct channel_t *assign_channel(struct subscriber_t *user,
/*@ -mustfreeonly @*/
for(devp = devices; devp < devices + MAXDEVICES; devp++)
if (allocated_device(devp)) {
- if (allocated_device(devp) && !initialized_device(devp)) {
+ if (!initialized_device(devp)) {
if (!open_device(devp->gpsdata.dev.path)) {
gpsd_report(LOG_PROG, "allocation_filter: open failed\n");
free_device(devp);