Date: Mon, 20 Dec 2010 19:07:48 +0000 (UTC) From: Ulrich Spoerlein <uqs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216597 - head/usr.sbin/lmcconfig Message-ID: <201012201907.oBKJ7mgE077119@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012201907.oBKJ7mgE077119>