diff options
author | eadler <eadler@FreeBSD.org> | 2015-04-19 04:27:50 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2015-04-19 04:27:50 +0000 |
commit | a06fddc3fca7664ac5672d01e3a8759b4f54cba6 (patch) | |
tree | de77608363ae80a090d079affbf2b35ffef497d6 /usr.bin/calendar | |
parent | 9cb51c323b9ebbaad40446f7722711f2c3024486 (diff) | |
download | FreeBSD-src-a06fddc3fca7664ac5672d01e3a8759b4f54cba6.zip FreeBSD-src-a06fddc3fca7664ac5672d01e3a8759b4f54cba6.tar.gz |
calendar: remove useless check
lineline checked for 0 in the while loop condition. There is no need to
check for it additionally in the body.
CID: 1288959
MFC After: 1 week
Diffstat (limited to 'usr.bin/calendar')
-rw-r--r-- | usr.bin/calendar/io.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c index fd030c1..5e5c146 100644 --- a/usr.bin/calendar/io.c +++ b/usr.bin/calendar/io.c @@ -257,9 +257,6 @@ cal_parse(FILE *in, FILE *out) return (1); while ((linelen = getline(&line, &linecap, in)) > 0) { - if (linelen == 0) - continue; - if (*line == '#') { switch (token(line+1, out, &skip)) { case T_ERR: |