From owner-svn-src-head@FreeBSD.ORG Sun Apr 19 04:27:51 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C906DFFA; Sun, 19 Apr 2015 04:27:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B32D8FEB; Sun, 19 Apr 2015 04:27:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3J4RppF035756; Sun, 19 Apr 2015 04:27:51 GMT (envelope-from eadler@FreeBSD.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3J4RpHI035755; Sun, 19 Apr 2015 04:27:51 GMT (envelope-from eadler@FreeBSD.org) Message-Id: <201504190427.t3J4RpHI035755@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: eadler set sender to eadler@FreeBSD.org using -f From: Eitan Adler Date: Sun, 19 Apr 2015 04:27:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281723 - head/usr.bin/calendar X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2015 04:27:52 -0000 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: