aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-12-13 02:00:40 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-03-10 19:44:21 +0100
commit4a1095fffb03396fc7eec5a11bc9139ebc831cb6 (patch)
tree70db25aa851d01112fe4548dffe520c2e3da1826
parentfcb5e8a0e5f39351d66061ab4048edd6a5a58ea8 (diff)
downloadnx-libs-4a1095fffb03396fc7eec5a11bc9139ebc831cb6.tar.gz
nx-libs-4a1095fffb03396fc7eec5a11bc9139ebc831cb6.tar.bz2
nx-libs-4a1095fffb03396fc7eec5a11bc9139ebc831cb6.zip
Keyboard.c: Simplify if clause
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 88af5d400..208ae0653 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -997,8 +997,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;
}
@@ -1083,8 +1082,7 @@ XkbError:
free(nxagentXkbConfigFilePath);
- if (!nxagentKeyboard ||
- (nxagentKeyboard && (strcmp(nxagentKeyboard, "query") == 0)))
+ if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0)
{
goto XkbError;
}