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()
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to