Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic PR/50882: David Binderman: Remove redundant code.



details:   https://anonhg.NetBSD.org/src/rev/158158dfd1f9
branches:  trunk
changeset: 343913:158158dfd1f9
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 02 19:26:15 2016 +0000

description:
PR/50882: David Binderman: Remove redundant code.

diffstat:

 sys/dev/ic/bwi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e51c64d19cf5 -r 158158dfd1f9 sys/dev/ic/bwi.c
--- a/sys/dev/ic/bwi.c  Wed Mar 02 19:25:32 2016 +0000
+++ b/sys/dev/ic/bwi.c  Wed Mar 02 19:26:15 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bwi.c,v 1.26 2015/04/10 11:47:12 maxv Exp $    */
+/*     $NetBSD: bwi.c,v 1.27 2016/03/02 19:26:15 christos Exp $        */
 /*     $OpenBSD: bwi.c,v 1.74 2008/02/25 21:13:30 mglocker Exp $       */
 
 /*
@@ -48,7 +48,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.26 2015/04/10 11:47:12 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.27 2016/03/02 19:26:15 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -3782,7 +3782,7 @@
                bwi_tbl_write_2(mac, tbl_gain_ofs2 + i, tbl_gain);
        }
 
-       if (gains == NULL || (gains != NULL && gains->phy_gain != -1)) {
+       if (gains == NULL || gains->phy_gain != -1) {
                uint16_t phy_gain1, phy_gain2;
 
                if (gains != NULL) {



Home | Main Index | Thread Index | Old Index