Commit 4a1095ff authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keyboard.c: Simplify if clause

parent fcb5e8a0
...@@ -997,8 +997,7 @@ XkbError: ...@@ -997,8 +997,7 @@ XkbError:
XkbInitKeyboardDeviceStruct((void *)pDev, &names, &keySyms, modmap, XkbInitKeyboardDeviceStruct((void *)pDev, &names, &keySyms, modmap,
nxagentBell, nxagentChangeKeyboardControl); nxagentBell, nxagentChangeKeyboardControl);
if (!nxagentKeyboard || if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0)
(nxagentKeyboard && (strcmp(nxagentKeyboard, "query") == 0)))
{ {
goto XkbError; goto XkbError;
} }
...@@ -1083,8 +1082,7 @@ XkbError: ...@@ -1083,8 +1082,7 @@ XkbError:
free(nxagentXkbConfigFilePath); free(nxagentXkbConfigFilePath);
if (!nxagentKeyboard || if (!nxagentKeyboard || strcmp(nxagentKeyboard, "query") == 0)
(nxagentKeyboard && (strcmp(nxagentKeyboard, "query") == 0)))
{ {
goto XkbError; goto XkbError;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment