Author: eadler
Date: Sun Apr 19 04:27:50 2015
New Revision: 281723
URL: https://svnweb.freebsd.org/changeset/base/281723

Log:
  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

Modified:
  head/usr.bin/calendar/io.c

Modified: head/usr.bin/calendar/io.c
==============================================================================
--- head/usr.bin/calendar/io.c  Sun Apr 19 01:23:12 2015        (r281722)
+++ head/usr.bin/calendar/io.c  Sun Apr 19 04:27:50 2015        (r281723)
@@ -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:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to