From 30fb15bb2d08648d1ce2e70d38c6ebe53d7e9759 Mon Sep 17 00:00:00 2001 From: uqs Date: Mon, 20 Dec 2010 19:07:48 +0000 Subject: [PATCH] Remove useless conditional. `vga' cannot be less than 0x3f when reaching the check. Coverity Prevent: CID 5196 --- usr.sbin/lmcconfig/lmcconfig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/lmcconfig/lmcconfig.c b/usr.sbin/lmcconfig/lmcconfig.c index 1fe63f76e958..35a110975dff 100644 --- a/usr.sbin/lmcconfig/lmcconfig.c +++ b/usr.sbin/lmcconfig/lmcconfig.c @@ -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()