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:
Christopher Michael 2012-04-16 22:05:10 +00:00
parent cada067d79
commit 5fe0a937c3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
if (!reply) return EINA_FALSE;
ret =
(reply->status == XCB_MAPPING_STATUS_SUCCESS) ? EINA_TRUE : EINA_FALSE;
if (reply->status == XCB_MAPPING_STATUS_SUCCESS)
ret = EINA_TRUE;
free(reply);
return ret;