forked from enlightenment/efl
Ecore_X(cb): And simplify the checking for success. 'ret' is already
false, so we can just check reply->status for success. SVN revision: 70248
This commit is contained in:
parent
cada067d79
commit
5fe0a937c3
|
@ -760,8 +760,8 @@ ecore_x_pointer_mapping_set(unsigned char *map, int nmap)
|
||||||
reply = xcb_set_pointer_mapping_reply(_ecore_xcb_conn, cookie, NULL);
|
reply = xcb_set_pointer_mapping_reply(_ecore_xcb_conn, cookie, NULL);
|
||||||
if (!reply) return EINA_FALSE;
|
if (!reply) return EINA_FALSE;
|
||||||
|
|
||||||
ret =
|
if (reply->status == XCB_MAPPING_STATUS_SUCCESS)
|
||||||
(reply->status == XCB_MAPPING_STATUS_SUCCESS) ? EINA_TRUE : EINA_FALSE;
|
ret = EINA_TRUE;
|
||||||
|
|
||||||
free(reply);
|
free(reply);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue