svn commit: r259547 - head/sys/dev/usb/wlan
Kevin Lo
kevlo at FreeBSD.org
Wed Dec 18 08:53:41 UTC 2013
Author: kevlo
Date: Wed Dec 18 08:53:40 2013
New Revision: 259547
URL: http://svnweb.freebsd.org/changeset/base/259547
Log:
Use 'val' instead of 'val & 0xff' since the last argument of run_bbp_write()
is uint8_t.
Spotted by: yongari
Modified:
head/sys/dev/usb/wlan/if_run.c
Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c Wed Dec 18 08:39:12 2013 (r259546)
+++ head/sys/dev/usb/wlan/if_run.c Wed Dec 18 08:53:40 2013 (r259547)
@@ -3659,7 +3659,7 @@ run_iq_calib(struct run_softc *sc, u_int
&val, 1);
} else
val = 0;
- run_bbp_write(sc, 159, val & 0xff);
+ run_bbp_write(sc, 159, val);
/* Tx0 IQ phase. */
run_bbp_write(sc, 158, 0x2d);
@@ -3680,7 +3680,7 @@ run_iq_calib(struct run_softc *sc, u_int
&val, 1);
} else
val = 0;
- run_bbp_write(sc, 159, val & 0xff);
+ run_bbp_write(sc, 159, val);
/* Tx1 IQ gain. */
run_bbp_write(sc, 158, 0x4a);
@@ -3701,7 +3701,7 @@ run_iq_calib(struct run_softc *sc, u_int
&val, 1);
} else
val = 0;
- run_bbp_write(sc, 159, val & 0xff);
+ run_bbp_write(sc, 159, val);
/* Tx1 IQ phase. */
run_bbp_write(sc, 158, 0x4b);
@@ -3722,19 +3722,19 @@ run_iq_calib(struct run_softc *sc, u_int
&val, 1);
} else
val = 0;
- run_bbp_write(sc, 159, val & 0xff);
+ run_bbp_write(sc, 159, val);
/* RF IQ compensation control. */
run_bbp_write(sc, 158, 0x04);
run_efuse_read(sc, RT5390_EEPROM_RF_IQ_COMPENSATION_CTL,
&val, 1);
- run_bbp_write(sc, 159, val & 0xff);
+ run_bbp_write(sc, 159, val);
/* RF IQ imbalance compensation control. */
run_bbp_write(sc, 158, 0x03);
run_efuse_read(sc,
RT5390_EEPROM_RF_IQ_IMBALANCE_COMPENSATION_CTL, &val, 1);
- run_bbp_write(sc, 159, val & 0xff);
+ run_bbp_write(sc, 159, val);
}
static void
More information about the svn-src-head
mailing list