aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-11-01 14:46:54 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-11-09 15:31:57 +0100
commit1b05251a02f2fbac09fb267f0c7fcb411c7e0105 (patch)
tree11fb022929dbe44c2fee1b455eebe9b179cbb435 /nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
parent6186383e70b56ba0782fae3c851779f2f079cbcd (diff)
downloadnx-libs-1b05251a02f2fbac09fb267f0c7fcb411c7e0105.tar.gz
nx-libs-1b05251a02f2fbac09fb267f0c7fcb411c7e0105.tar.bz2
nx-libs-1b05251a02f2fbac09fb267f0c7fcb411c7e0105.zip
Keyboard.c: simplify over-specific if
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Keyboard.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 9c0fd0212..65c4d20fe 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -869,8 +869,7 @@ XkbError:
XkbInitKeyboardDeviceStruct((void *)pDev, &names, &keySyms, modmap,
nxagentBell, nxagentChangeKeyboardControl);
- if (!nxagentKeyboard ||
- (nxagentKeyboard && (strcmp(nxagentKeyboard, "query") == 0)))
+ if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0)
{
goto XkbError;
}