diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-05-06 16:05:21 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-05-06 16:05:21 +0000 |
commit | 371550dd416d7240bf9a789feaaa1e80f87677ae (patch) | |
tree | 7ec68453a3084c5db0b7c01c387a25e21da823ae | |
parent | 679226da97a524ce85ae2eee22b21013ab6d6c4e (diff) |
remove erroneous fldcnt test. fldcnt can never be 13 here. this is
apparently a leftover from tty_nmea.c
-rw-r--r-- | sys/kern/tty_msts.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/tty_msts.c b/sys/kern/tty_msts.c index 960d0d3515f..c00c94babd7 100644 --- a/sys/kern/tty_msts.c +++ b/sys/kern/tty_msts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty_msts.c,v 1.13 2009/04/26 02:25:36 cnst Exp $ */ +/* $OpenBSD: tty_msts.c,v 1.14 2009/05/06 16:05:20 stevesk Exp $ */ /* * Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org> @@ -281,8 +281,7 @@ msts_decode(struct msts *np, struct tty *tp, char *fld[], int fldcnt) if (np->time.status == SENSOR_S_UNKNOWN) { np->time.status = SENSOR_S_OK; np->time.flags &= ~SENSOR_FINVALID; - if (fldcnt != 13) - strlcpy(np->time.desc, "MSTS", sizeof(np->time.desc)); + strlcpy(np->time.desc, "MSTS", sizeof(np->time.desc)); } /* * only update the timeout if the clock reports the time a valid, |