From b7694b0b51cdf07f49d89132fbe100b5ebfb086b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= Date: Tue, 18 Jan 2011 12:49:48 +0200 Subject: Comparing array against NULL is not useful "&xkb->server->vmods != NULL" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed superfluous comparison. Reviewed-by: Dirk Wallenstein Signed-off-by: Erkki Seppälä Backported-to-NX-by: Ulrich Sibiller --- nx-X11/lib/X11/XKBMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3