Diff for /src/sys/dev/usbmisc/ukbd/ukbd.c between versions 1.7 and 1.8

version 1.7, 2004/03/15 01:10:44 version 1.8, 2004/03/15 02:27:57
Line 522  ukbd_init(int unit, keyboard_t **kbdp, v Line 522  ukbd_init(int unit, keyboard_t **kbdp, v
                 fkeymap_size =                  fkeymap_size =
                         sizeof(default_fkeytab)/sizeof(default_fkeytab[0]);                          sizeof(default_fkeytab)/sizeof(default_fkeytab[0]);
         } else if (*kbdp == NULL) {          } else if (*kbdp == NULL) {
                *kbdp = kbd = malloc(sizeof(*kbd), M_DEVBUF, M_WAITOK | M_ZERO);                *kbdp = kbd = malloc(sizeof(*kbd), M_DEVBUF, M_INTWAIT | M_ZERO);
                state = malloc(sizeof(*state), M_DEVBUF, M_WAITOK);                state = malloc(sizeof(*state), M_DEVBUF, M_INTWAIT);
                keymap = malloc(sizeof(key_map), M_DEVBUF, M_WAITOK);                keymap = malloc(sizeof(key_map), M_DEVBUF, M_INTWAIT);
                accmap = malloc(sizeof(accent_map), M_DEVBUF, M_WAITOK);                accmap = malloc(sizeof(accent_map), M_DEVBUF, M_INTWAIT);
                fkeymap = malloc(sizeof(fkey_tab), M_DEVBUF, M_WAITOK);                fkeymap = malloc(sizeof(fkey_tab), M_DEVBUF, M_INTWAIT);
                 fkeymap_size = sizeof(fkey_tab)/sizeof(fkey_tab[0]);                  fkeymap_size = sizeof(fkey_tab)/sizeof(fkey_tab[0]);
                 if ((state == NULL) || (keymap == NULL) || (accmap == NULL)                  if ((state == NULL) || (keymap == NULL) || (accmap == NULL)
                      || (fkeymap == NULL)) {                       || (fkeymap == NULL)) {

Removed from v.1.7  
changed lines
  Added in v.1.8