changeset 10747:3e9fff3cbcc7

6873319 WiFi driver for Marvell 88W8363 chipset (fix lint)
author fei feng - Sun Microsystems - Beijing China <Fei.Feng@Sun.COM>
date Fri, 09 Oct 2009 16:50:31 +0800
parents 5944e0b7fd72
children 9a5bce5b2c2f
files usr/src/uts/common/io/mwl/mwl.c usr/src/uts/common/io/mwl/mwl_var.h
diffstat 2 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/mwl/mwl.c	Thu Oct 08 22:14:42 2009 -0700
+++ b/usr/src/uts/common/io/mwl/mwl.c	Fri Oct 09 16:50:31 2009 +0800
@@ -1285,7 +1285,7 @@
 	_CMD_SETUP(pCmd, HostCmd_FW_GET_CALTABLE, HostCmd_CMD_GET_CALTABLE);
 	pCmd->annex = annex;
 	pCmd->index = index;
-	memset(pCmd->calTbl, 0, sizeof (pCmd->calTbl));
+	(void) memset(pCmd->calTbl, 0, sizeof (pCmd->calTbl));
 
 	retval = mwlExecuteCmd(sc, HostCmd_CMD_GET_CALTABLE);
 	if (retval == 0 &&
@@ -1612,7 +1612,7 @@
 	 * channel list for net80211.  Note that we pass up
 	 * an unsorted list; net80211 will sort it for us.
 	 */
-	memset(sc->sc_channels, 0, sizeof (sc->sc_channels));
+	(void) memset(sc->sc_channels, 0, sizeof (sc->sc_channels));
 	sc->sc_nchans = 0;
 	getchannels(sc, IEEE80211_CHAN_MAX, &sc->sc_nchans, sc->sc_channels);
 
@@ -1642,7 +1642,7 @@
 
 	hw = &sc->sc_hwspecs;
 	_CMD_SETUP(pCmd, HostCmd_DS_GET_HW_SPEC, HostCmd_CMD_GET_HW_SPEC);
-	memset(&pCmd->PermanentAddr[0], 0xff, IEEE80211_ADDR_LEN);
+	(void) memset(&pCmd->PermanentAddr[0], 0xff, IEEE80211_ADDR_LEN);
 	pCmd->ulFwAwakeCookie = LE_32((unsigned int)sc->sc_cmd_dmaaddr + 2048);
 
 	retval = mwlExecuteCmd(sc, HostCmd_CMD_GET_HW_SPEC);
@@ -1900,7 +1900,7 @@
 	pCmd->MultiRateTxType = RATETYPE(rate->McastRate);
 	/* NB: no rate type field */
 	pCmd->ManagementRate = RATEVAL(rate->MgtRate);
-	memset(pCmd->FixedRateTable, 0, sizeof (pCmd->FixedRateTable));
+	(void) memset(pCmd->FixedRateTable, 0, sizeof (pCmd->FixedRateTable));
 	if (handling == RATE_FIXED) {
 		pCmd->Action = LE_32(HostCmd_ACT_GEN_SET);
 		pCmd->AllowRateDrop = LE_32(FIXED_RATE_WITHOUT_AUTORATE_DROP);
@@ -1949,7 +1949,7 @@
 	pCmd->MultiRateTxType = RATETYPE(rate->McastRate);
 	/* NB: no rate type field */
 	pCmd->ManagementRate = RATEVAL(rate->MgtRate);
-	memset(pCmd->FixedRateTable, 0, sizeof (pCmd->FixedRateTable));
+	(void) memset(pCmd->FixedRateTable, 0, sizeof (pCmd->FixedRateTable));
 	pCmd->Action = LE_32(HostCmd_ACT_NOT_USE_FIXED_RATE);
 
 	retval = mwlExecuteCmd(sc, HostCmd_CMD_SET_FIXED_RATE);
@@ -2046,7 +2046,7 @@
 	 * Update the h/w rate map.
 	 * NB: 0x80 for MCS is passed through unchanged
 	 */
-	memset(&rates, 0, sizeof (rates));
+	(void) memset(&rates, 0, sizeof (rates));
 	/* rate used to send management frames */
 	rates.MgtRate = rs->ir_rates[0] & IEEE80211_RATE_VAL;
 	/* rate used to send multicast frames */
@@ -2292,7 +2292,7 @@
 	const uint8_t bcastaddr[IEEE80211_ADDR_LEN] =
 	    { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
 
-	memset(&hk, 0, sizeof (hk));
+	(void) memset(&hk, 0, sizeof (hk));
 	hk.keyIndex = k->wk_keyix;
 	switch (k->wk_cipher->ic_cipher) {
 	case IEEE80211_CIPHER_WEP:
@@ -2332,7 +2332,7 @@
 	const uint8_t *macaddr;
 	MWL_HAL_KEYVAL hk;
 
-	memset(&hk, 0, sizeof (hk));
+	(void) memset(&hk, 0, sizeof (hk));
 	hk.keyIndex = k->wk_keyix;
 	switch (cip->ic_cipher) {
 	case IEEE80211_CIPHER_WEP:
@@ -2559,7 +2559,7 @@
 	const struct ieee80211_rateset *rs;
 	MWL_HAL_TXRATE rates;
 
-	memset(&rates, 0, sizeof (rates));
+	(void) memset(&rates, 0, sizeof (rates));
 	rs = mwl_get_suprates(ic, sc->sc_cur_chan);
 	/* rate used to send management frames */
 	rates.MgtRate = rs->ir_rates[0] & IEEE80211_RATE_VAL;
@@ -2949,7 +2949,7 @@
 static MWL_HAL_PEERINFO *
 mkpeerinfo(MWL_HAL_PEERINFO *pi, const struct ieee80211_node *ni)
 {
-	memset(pi, 0, sizeof (*pi));
+	(void) memset(pi, 0, sizeof (*pi));
 	pi->LegacyRateBitMap = get_rate_bitmap(&ni->in_rates);
 	pi->CapInfo = ni->in_capinfo;
 	return (pi);
--- a/usr/src/uts/common/io/mwl/mwl_var.h	Thu Oct 08 22:14:42 2009 -0700
+++ b/usr/src/uts/common/io/mwl/mwl_var.h	Fri Oct 09 16:50:31 2009 +0800
@@ -594,7 +594,7 @@
 
 #define	_CMD_SETUP(pCmd, type, cmd) do {				\
 	pCmd = (type *)&sc->sc_cmd_mem[0];				\
-	memset(pCmd, 0, sizeof (type));					\
+	(void) memset(pCmd, 0, sizeof (type));				\
 	pCmd->CmdHdr.Cmd = LE_16(cmd);					\
 	pCmd->CmdHdr.Length = LE_16(sizeof (type));			\
 	_NOTE(CONSTCOND)						\