changeset 10912:bb04b6e33d44

6894135 some usb modules are not lint clean
author Raymond Chen <Raymond.Chen@Sun.COM>
date Fri, 30 Oct 2009 10:52:42 +0800
parents deadca71801d
children 1d1ed05d0838
files usr/src/uts/common/io/usb/clients/hwarc/hwarc.c usr/src/uts/common/io/usb/hwa/hwahc/hwahc.c usr/src/uts/common/io/usb/hwa/hwahc/hwahc_util.c usr/src/uts/common/io/usb/usba/wa.c usr/src/uts/common/io/usb/usba/whcdi.c usr/src/uts/common/io/uwb/uwba/uwbai.c
diffstat 6 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/usb/clients/hwarc/hwarc.c	Thu Oct 29 19:05:31 2009 -0700
+++ b/usr/src/uts/common/io/usb/clients/hwarc/hwarc.c	Fri Oct 30 10:52:42 2009 +0800
@@ -1075,7 +1075,7 @@
 	mutex_exit(&hrcp->hrc_mutex);
 
 	/* Reconnect the uwb device will restore uwb device state */
-	uwb_dev_reconnect(dip);
+	(void) uwb_dev_reconnect(dip);
 	return (USB_SUCCESS);
 }
 
@@ -1241,7 +1241,7 @@
 	mutex_exit(&hrcp->hrc_mutex);
 
 	/* Reconnect the uwb device will restore uwb device state */
-	uwb_dev_reconnect(dip);
+	(void) uwb_dev_reconnect(dip);
 }
 
 /*
--- a/usr/src/uts/common/io/usb/hwa/hwahc/hwahc.c	Thu Oct 29 19:05:31 2009 -0700
+++ b/usr/src/uts/common/io/usb/hwa/hwahc/hwahc.c	Fri Oct 30 10:52:42 2009 +0800
@@ -452,7 +452,7 @@
 	case DDI_ATTACH:
 		break;
 	case DDI_RESUME:
-		hwahc_cpr_resume(dip);
+		(void) hwahc_cpr_resume(dip);
 
 		return (DDI_SUCCESS);
 	default:
@@ -4038,8 +4038,8 @@
 	(void) memcpy(hwahcp->hwahc_hc_data.hc_mas, mas, WUSB_SET_WUSB_MAS_LEN);
 
 	/* Set initial GTK/TKID to random values */
-	random_get_pseudo_bytes(dft_gtk, 16);
-	random_get_pseudo_bytes(dft_gtkid, 3);
+	(void) random_get_pseudo_bytes(dft_gtk, 16);
+	(void) random_get_pseudo_bytes(dft_gtkid, 3);
 
 	/* set default GTK, need a way to dynamically compute it */
 	mutex_exit(&hwahcp->hwahc_mutex);
--- a/usr/src/uts/common/io/usb/hwa/hwahc/hwahc_util.c	Thu Oct 29 19:05:31 2009 -0700
+++ b/usr/src/uts/common/io/usb/hwa/hwahc/hwahc_util.c	Fri Oct 30 10:52:42 2009 +0800
@@ -501,7 +501,7 @@
 	if (rval != USB_SUCCESS) {
 		USB_DPRINTF_L2(PRINT_MASK_HCDI, hwahcp->hwahc_log_handle,
 		    "hwahc_hcdi_pipe_open: set target for rpipe failed");
-		wusb_wa_release_rpipe(wa, pp->pp_rp);
+		(void) wusb_wa_release_rpipe(wa, pp->pp_rp);
 		kmem_free(pp, sizeof (hwahc_pipe_private_t));
 		mutex_exit(&hwahcp->hwahc_mutex);
 
@@ -561,7 +561,7 @@
 	wusb_wa_clear_dev_ep(ph); /* clear the remote dev's endpoint */
 	mutex_enter(&hwahcp->hwahc_mutex);
 
-	wusb_wa_release_rpipe(&hwahcp->hwahc_wa_data, pp->pp_rp);
+	(void) wusb_wa_release_rpipe(&hwahcp->hwahc_wa_data, pp->pp_rp);
 
 	mutex_enter(&ph->p_mutex);
 	cv_destroy(&pp->pp_xfer_cmpl_cv);
@@ -663,7 +663,7 @@
 			 * we need to reset this RPipe by ourself
 			 */
 			mutex_exit(&hwahcp->hwahc_mutex);
-			wusb_wa_rpipe_reset(hwahcp->hwahc_dip, ph,
+			(void) wusb_wa_rpipe_reset(hwahcp->hwahc_dip, ph,
 			    pp->pp_rp, 1);
 			mutex_enter(&hwahcp->hwahc_mutex);
 			pp->pp_state = 0;
--- a/usr/src/uts/common/io/usb/usba/wa.c	Thu Oct 29 19:05:31 2009 -0700
+++ b/usr/src/uts/common/io/usb/usba/wa.c	Fri Oct 30 10:52:42 2009 +0800
@@ -1272,8 +1272,8 @@
 	    "wusb_wa_clear_dev_ep:clear endpoint = 0x%02x", ept_addr);
 	if (ept_addr != 0) {
 	/* only clear non-default endpoints */
-		usb_clr_feature(ph->p_dip, USB_DEV_REQ_RCPT_EP, 0, ept_addr,
-		    USB_FLAGS_SLEEP, NULL, NULL);
+		(void) usb_clr_feature(ph->p_dip, USB_DEV_REQ_RCPT_EP, 0,
+		    ept_addr, USB_FLAGS_SLEEP, NULL, NULL);
 	}
 }
 
--- a/usr/src/uts/common/io/usb/usba/whcdi.c	Thu Oct 29 19:05:31 2009 -0700
+++ b/usr/src/uts/common/io/usb/usba/whcdi.c	Fri Oct 30 10:52:42 2009 +0800
@@ -2721,7 +2721,7 @@
 	    3 * sizeof (wusb_hndshk_data_t), KM_SLEEP);
 
 	/* tkid is generated dynamically and saved in dev_info */
-	random_get_pseudo_bytes(tkid, 3);
+	(void) random_get_pseudo_bytes(tkid, 3);
 
 	(void) memcpy(dev_info->wdev_tkid, tkid, 3);
 
--- a/usr/src/uts/common/io/uwb/uwba/uwbai.c	Thu Oct 29 19:05:31 2009 -0700
+++ b/usr/src/uts/common/io/uwb/uwba/uwbai.c	Fri Oct 30 10:52:42 2009 +0800
@@ -270,7 +270,7 @@
 	    dip, channel, state);
 
 	if (state == UWB_STATE_BEACON) {
-		uwb_stop_beacon(dip);
+		(void) uwb_stop_beacon(dip);
 	}
 
 	mutex_enter(&uwba_dev->dev_mutex);
@@ -312,10 +312,10 @@
 	    dip, channel, state);
 
 
-	uwb_set_dev_addr(dip, uwba_dev->dev_addr);
+	(void) uwb_set_dev_addr(dip, uwba_dev->dev_addr);
 
 	if (state == UWB_STATE_BEACON) {
-		uwb_start_beacon(dip, uwba_dev->channel);
+		(void) uwb_start_beacon(dip, uwba_dev->channel);
 	}