From owner-svn-src-all@FreeBSD.ORG Mon Dec 20 19:07:48 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5B07106564A; Mon, 20 Dec 2010 19:07:48 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B4DA38FC12; Mon, 20 Dec 2010 19:07:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oBKJ7m1a077121; Mon, 20 Dec 2010 19:07:48 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oBKJ7mgE077119; Mon, 20 Dec 2010 19:07:48 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201012201907.oBKJ7mgE077119@svn.freebsd.org> From: Ulrich Spoerlein Date: Mon, 20 Dec 2010 19:07:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216597 - head/usr.sbin/lmcconfig X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 19:07:48 -0000 Author: uqs Date: Mon Dec 20 19:07:48 2010 New Revision: 216597 URL: http://svn.freebsd.org/changeset/base/216597 Log: Remove useless conditional. `vga' cannot be less than 0x3f when reaching the check. Coverity Prevent: CID 5196 Modified: head/usr.sbin/lmcconfig/lmcconfig.c Modified: head/usr.sbin/lmcconfig/lmcconfig.c ============================================================================== --- head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 17:39:39 2010 (r216596) +++ head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 19:07:48 2010 (r216597) @@ -889,9 +889,8 @@ double vga_dbs(u_int8_t vga) if ((vga >= 0x0F) && (vga <= 0x1B)) return 0.0 + 0.77 * (vga - 0x0F); if ((vga >= 0x1C) && (vga <= 0x33)) return 10.0 + 1.25 * (vga - 0x1C); if ((vga >= 0x34) && (vga <= 0x39)) return 40.0 + 1.67 * (vga - 0x34); - if ((vga >= 0x3A) && (vga <= 0x3F)) return 50.0 + 2.80 * (vga - 0x3A); - if (vga > 0x3F) return 64.0; - return 0.0; /* suppress compiler warning */ + if ((vga >= 0x3A) && (vga < 0x3F)) return 50.0 + 2.80 * (vga - 0x3A); + return 64.0; } void print_rx_gain()