summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-04-27 21:30:22 +0300
committerToomas Soome <tsoome@me.com>2019-05-16 22:29:52 +0300
commitc7a3e8ab2d516101489c6cb5fb2cea59a52d7bba (patch)
tree76cdbfe0408f4da5e48dbc70e910adb93695527e
parent411e5762bff38b7fee2b31a987c104503ddc9c9c (diff)
downloadillumos-joyent-c7a3e8ab2d516101489c6cb5fb2cea59a52d7bba.tar.gz
10876 ath: comparison between pointer and integer
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/io/ath/ath_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/ath/ath_main.c b/usr/src/uts/common/io/ath/ath_main.c
index fa2a3dba24..7054a51b6d 100644
--- a/usr/src/uts/common/io/ath/ath_main.c
+++ b/usr/src/uts/common/io/ath/ath_main.c
@@ -549,7 +549,7 @@ ath_rx_handler(ath_t *asc)
mutex_exit(&asc->asc_rxbuflock);
break;
}
- ASSERT(bf->bf_dma.cookie.dmac_address != NULL);
+ ASSERT(bf->bf_dma.cookie.dmac_address != 0);
ds = bf->bf_desc;
if (ds->ds_link == bf->bf_daddr) {
/*
@@ -1283,8 +1283,8 @@ ath_newstate(ieee80211com_t *ic, enum ieee80211_state nstate, int arg)
HAL_LED_INIT, /* IEEE80211_S_INIT */
HAL_LED_SCAN, /* IEEE80211_S_SCAN */
HAL_LED_AUTH, /* IEEE80211_S_AUTH */
- HAL_LED_ASSOC, /* IEEE80211_S_ASSOC */
- HAL_LED_RUN, /* IEEE80211_S_RUN */
+ HAL_LED_ASSOC, /* IEEE80211_S_ASSOC */
+ HAL_LED_RUN, /* IEEE80211_S_RUN */
};
if (!ATH_IS_RUNNING(asc))
return (0);
@@ -2448,7 +2448,7 @@ ath_detach(dev_info_t *devinfo, ddi_detach_cmd_t cmd)
static int32_t
ath_quiesce(dev_info_t *devinfo)
{
- ath_t *asc;
+ ath_t *asc;
struct ath_hal *ah;
int i;