summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-18 12:49:48 +0200
committerErkki Seppälä <erkki.seppala@vincit.fi>2011-01-31 11:23:13 +0200
commite994ab227ed28655565c3193e63733630105e7f9 (patch)
treefaee5b94e46c64c4ae72ed0a2739b16ffa254ba1
parent4115f051e62f9b098efce691e070d44f09f30f1c (diff)
Comparing array against NULL is not useful "&xkb->server->vmods != NULL"
Removed superfluous comparison. Reviewed-by: Dirk Wallenstein <halsmit@t-online.de> Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
-rw-r--r--src/xkb/XKBMisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkb/XKBMisc.c b/src/xkb/XKBMisc.c
index fc5ae5f6..4aa1f733 100644
--- a/src/xkb/XKBMisc.c
+++ b/src/xkb/XKBMisc.c
@@ -619,7 +619,7 @@ KeySym * syms;
XkbApplyCompatMapToKey(xkb,key,changes);
}
- if ((xkb->server->vmods!=NULL)&&(xkb->map->modmap!=NULL)&&(changes)&&
+ if ((xkb->map->modmap!=NULL)&&(changes)&&
(changes->map.changed&(XkbVirtualModMapMask|XkbModifierMapMask))) {
unsigned char newVMods[XkbNumVirtualMods];
register unsigned bit,i;