Commit 41bf8397 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keyboard.c: simplify code

Based on PVS Studio finding: "V547 Expression 'data' is always true."
parent 5735e164
......@@ -1425,11 +1425,9 @@ static void nxagentXkbGetRemoteNames(void)
if ((after > 0) || (type != XA_STRING) || (format != 8))
{
if (data)
{
SAFE_XFree(data);
return;
}
/* data non-null - has been checked above */
SAFE_XFree(data);
return;
}
char *name = data;
......
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