Changes in / [70a71e5:7787dd81] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/kbddev.c

    r70a71e5 r7787dd81  
    272272        unsigned i = 0;
    273273       
     274        /* Reset the LED data. */
     275        memset(kbd_dev->led_data, 0, kbd_dev->led_output_size * sizeof(int32_t));
     276       
    274277        if ((kbd_dev->mods & KM_NUM_LOCK) && (i < kbd_dev->led_output_size)) {
    275278                kbd_dev->led_data[i++] = USB_HID_LED_NUM_LOCK;
    276279//              leds |= USB_HID_LED_NUM_LOCK;
    277280        }
    278         else {
    279             kbd_dev->led_data[i++] = 0;
    280         }
    281281       
    282282        if ((kbd_dev->mods & KM_CAPS_LOCK) && (i < kbd_dev->led_output_size)) {
    283283                kbd_dev->led_data[i++] = USB_HID_LED_CAPS_LOCK;
    284284//              leds |= USB_HID_LED_CAPS_LOCK;
    285         }
    286         else {
    287             kbd_dev->led_data[i++] = 0;
    288285        }
    289286       
     
    292289                kbd_dev->led_data[i++] = USB_HID_LED_SCROLL_LOCK;
    293290//              leds |= USB_HID_LED_SCROLL_LOCK;
    294         }
    295         else {
    296             kbd_dev->led_data[i++] = 0;
    297291        }
    298292       
Note: See TracChangeset for help on using the changeset viewer.