Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP
@@ -1428,13 +1428,10 @@
/*
* the scheme ensures each time only one device addr
* is set each time
*/
disconn_ie = kmem_zalloc(sizeof (wusb_ie_dev_disconnect_t), KM_SLEEP);
- if (!disconn_ie) {
- return (USB_NO_RESOURCES);
- }
disconn_ie->bIEIdentifier = WUSB_IE_DEV_DISCONNECT;
disconn_ie->bDeviceAddress[0] = addr;
/* padding, no active wusb device addr will be 1 */
disconn_ie->bDeviceAddress[1] = 1;