summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-11 09:20:20 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-11 09:20:20 -0400
commit2941f808be395819aefb9241b3889b441b73ea1b (patch)
tree083353edd201273d3e3af9a604ff5eecca56a319 /serial.c
parent087691569a1e6ae23c1969db5a1d0ebc5d229ca5 (diff)
downloadgpsd-2941f808be395819aefb9241b3889b441b73ea1b.tar.gz
Code slimming.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/serial.c b/serial.c
index f8cd94b9..be4a77d4 100644
--- a/serial.c
+++ b/serial.c
@@ -502,10 +502,7 @@ ssize_t gpsd_write(struct gps_device_t * session, char const *buf, size_t len)
bool gpsd_next_hunt_setting(struct gps_device_t * session)
/* advance to the next hunt setting */
{
-#ifdef FIXED_PORT_SPEED
- /* just the one fixed port speed... */
- static unsigned int rates[] = { FIXED_PORT_SPEED };
-#else /* FIXED_PORT_SPEED not defined */
+#ifndef FIXED_PORT_SPEED
/* every rate we're likely to see on a GPS */
static unsigned int rates[] =
{ 0, 4800, 9600, 19200, 38400, 57600, 115200 };