diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-03-24 16:44:06 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-03-24 16:44:06 -0400 |
commit | 558c845f67e8555344fcbef5dbbe925606dc6ee7 (patch) | |
tree | f0cd96645f29f3e7794aea61b6c8089ce59c3dc1 /gpsd.c | |
parent | e4e879b72fda090ba7a6178fdc8d85e4c6a4f478 (diff) | |
download | gpsd-558c845f67e8555344fcbef5dbbe925606dc6ee7.tar.gz |
Code simplification. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |