memset(&data, 0x00, sizeof(_mm_sound_focus_socket_param_t));
memset(&result, 0x00, sizeof(_mm_sound_focus_socket_result_t));
FILL_SOCKET_PARAM_REGISTER(data, FOCUS_FUNC_NAME_REGISTER, pid, stream_type);
- if ((ret = _send_data_to_server(*client_fd, &data, &result)) < 0) {
+ if ((ret = _send_data_to_server(*client_fd, &data, &result))) {
debug_error("failed to _send_data_to_server(), ret[0x%x]", ret);
close(*client_fd);
return ret;
memset(&data, 0x00, sizeof(_mm_sound_focus_socket_param_t));
memset(&result, 0x00, sizeof(_mm_sound_focus_socket_result_t));
FILL_SOCKET_PARAM_ADD_WATCH(data, FOCUS_FUNC_NAME_ADD_WATCH, pid, focus_type);
- if ((ret = _send_data_to_server(*client_fd, &data, &result)) < 0) {
+ if ((ret = _send_data_to_server(*client_fd, &data, &result))) {
debug_error("failed to _send_data_to_server(), ret[0x%x]", ret);
close(*client_fd);
return ret;