diff options
author | Erkki Seppälä <erkki.seppala@vincit.fi> | 2011-01-18 12:49:48 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:24 +0200 |
commit | b7694b0b51cdf07f49d89132fbe100b5ebfb086b (patch) | |
tree | 681ea30b281574b0c1677e9812929003af0e9297 /nx-X11/lib/X11/XKBMisc.c | |
parent | 3147ddbf47897688b61e95c18f255cbd8ccc0532 (diff) | |
download | nx-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.c | 2 |
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; |