summaryrefslogtreecommitdiff
path: root/hw/vfb
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-14 16:57:29 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-17 10:03:40 +1000
commitb406886bbffadaa52864a99f2a0520999eadc15d (patch)
tree815537f8c64b5de361d9232b537f9e62c2f4b865 /hw/vfb
parent4e4e263bc073bf452f19c932b937c4881ae71f64 (diff)
input: allow NULL as XkbRMVLOSet in InitKeyboardDeviceStruct.
Virtually all callers use XkbGetRulesDefault(&rmlvo); InitKeyboardDeviceStruct(..., rmlvo); Let's save them the trouble and accept NULL as a hint to take the default RMLVO. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Benjamin Close <Benjamin.Close@clearchain.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'hw/vfb')
-rw-r--r--hw/vfb/InitInput.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/vfb/InitInput.c b/hw/vfb/InitInput.c
index aa902522a..4c8c99653 100644
--- a/hw/vfb/InitInput.c
+++ b/hw/vfb/InitInput.c
@@ -66,13 +66,11 @@ static int
vfbKeybdProc(DeviceIntPtr pDevice, int onoff)
{
DevicePtr pDev = (DevicePtr)pDevice;
- XkbRMLVOSet rmlvo;
switch (onoff)
{
case DEVICE_INIT:
- XkbGetRulesDflts(&rmlvo);
- InitKeyboardDeviceStruct(pDevice, &rmlvo, NULL, NULL);
+ InitKeyboardDeviceStruct(pDevice, NULL, NULL, NULL);
break;
case DEVICE_ON:
pDev->on = TRUE;