summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-01-01 12:13:42 +0200
committerToomas Soome <tsoome@me.com>2020-04-07 09:15:45 +0300
commitdd6b11ddff7060f33ccf31e17387d9e1c430a013 (patch)
treeacae8fc09061502468d799305b2264a0ccdbbd94 /usr/src
parentc4c986b810b9fd93e8a611caf5ed0f346a84416c (diff)
downloadillumos-joyent-dd6b11ddff7060f33ccf31e17387d9e1c430a013.tar.gz
12458 iwh: variable may be used uninitialized
Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/iwh/iwh.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/iwh/iwh.c b/usr/src/uts/common/io/iwh/iwh.c
index 39b6f27e7f..db1cfba28b 100644
--- a/usr/src/uts/common/io/iwh/iwh.c
+++ b/usr/src/uts/common/io/iwh/iwh.c
@@ -2101,8 +2101,8 @@ iwh_mac_access_exit(iwh_sc_t *sc)
* static uint32_t
* iwh_mem_read(iwh_sc_t *sc, uint32_t addr)
* {
- * IWH_WRITE(sc, HBUS_TARG_MEM_RADDR, addr);
- * return (IWH_READ(sc, HBUS_TARG_MEM_RDAT));
+ * IWH_WRITE(sc, HBUS_TARG_MEM_RADDR, addr);
+ * return (IWH_READ(sc, HBUS_TARG_MEM_RDAT));
* }
*/
@@ -3085,9 +3085,10 @@ iwh_send(ieee80211com_t *ic, mblk_t *mp, uint8_t type)
struct ieee80211_qosframe *qwh = NULL;
int tid = WME_TID_INVALID;
- if (NULL == ic) {
+ if (ic == NULL) {
return (IWH_FAIL);
}
+ rate = 0;
sc = (iwh_sc_t *)ic;
if (sc->sc_flags & IWH_F_SUSPEND) {