diff options
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/xkbLEDs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c index 515e9b701..24fcd3b48 100644 --- a/xkb/xkbLEDs.c +++ b/xkb/xkbLEDs.c @@ -680,11 +680,9 @@ XkbSrvLedInfoPtr sli; /* optimization to check for most common case */ if (((class==XkbDfltXIClass)&&(id==XkbDfltXIId))&&(dev->kbdfeed)) { - XkbSrvLedInfoPtr sli; - sli= dev->kbdfeed->xkb_sli; if (dev->kbdfeed->xkb_sli==NULL) { - sli= XkbAllocSrvLedInfo(dev,dev->kbdfeed,NULL,needed_parts); - dev->kbdfeed->xkb_sli= sli; + dev->kbdfeed->xkb_sli= + XkbAllocSrvLedInfo(dev,dev->kbdfeed,NULL,needed_parts); } return dev->kbdfeed->xkb_sli; } |