Print this page
5253 kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
5254 getrbuf won't fail with KM_SLEEP

*** 21,32 **** /* * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" - /* * This is the Beep module for supporting keyboard beep for keyboards * that do not have the beeping feature within themselves * */ --- 21,30 ----
*** 111,126 **** BEEP_DEBUG1((CE_CONT, "beep_init : beep_queue kmem_zalloc(%d) = 0x%lx.", (int)sizeof (beep_entry_t) * beep_queue_size, (unsigned long)queue)); - if (queue == NULL) { - BEEP_DEBUG((CE_WARN, - "beep_init : kmem_zalloc of beep_queue failed.")); - return (DDI_FAILURE); - } - beep_state.arg = arg; beep_state.mode = BEEP_OFF; beep_state.beep_freq = beep_freq_func; beep_state.beep_on = beep_on_func; beep_state.beep_off = beep_off_func; --- 109,118 ----