Remove useless conditional.

`vga' cannot be less than 0x3f when reaching the check.

Coverity Prevent:	CID 5196
This commit is contained in:
uqs 2010-12-20 19:07:48 +00:00
parent 7be504c8f7
commit 30fb15bb2d

View File

@ -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()