aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/XKBMisc.c
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-18 12:49:48 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:24 +0200
commitb7694b0b51cdf07f49d89132fbe100b5ebfb086b (patch)
tree681ea30b281574b0c1677e9812929003af0e9297 /nx-X11/lib/X11/XKBMisc.c
parent3147ddbf47897688b61e95c18f255cbd8ccc0532 (diff)
downloadnx-libs-b7694b0b51cdf07f49d89132fbe100b5ebfb086b.tar.gz
nx-libs-b7694b0b51cdf07f49d89132fbe100b5ebfb086b.tar.bz2
nx-libs-b7694b0b51cdf07f49d89132fbe100b5ebfb086b.zip
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> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/XKBMisc.c')
-rw-r--r--nx-X11/lib/X11/XKBMisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/XKBMisc.c b/nx-X11/lib/X11/XKBMisc.c
index fbd7e6852..ea6bd4518 100644
--- a/nx-X11/lib/X11/XKBMisc.c
+++ b/nx-X11/lib/X11/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;