Skip to content
Snippets Groups Projects
Commit bdd99e75 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

FastForwarding data.lnx.3.0-dev from data.lnx.2.1-dev

Change-Id: I6e155b1a8a150bd898d54ba2a85e4bef83264ba7
parents 45fa28f6 1dad831a
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,6 @@ static uint16_t rmnetctl_transact(rmnetctl_hndl_t *hndl,
response_buf = (uint8_t *)malloc(MAX_BUF_SIZE * sizeof(uint8_t));
if (!response_buf) {
free(request_buf);
return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
break;
}
......@@ -165,8 +164,6 @@ static uint16_t rmnetctl_transact(rmnetctl_hndl_t *hndl,
(struct sockaddr*)saddr_ptr,
sizeof(struct sockaddr_nl)) < 0) {
return_code = RMNETCTL_API_ERR_MESSAGE_SEND;
free(request_buf);
free(response_buf);
break;
}
......@@ -179,8 +176,6 @@ static uint16_t rmnetctl_transact(rmnetctl_hndl_t *hndl,
&addrlen);
if (bytes_read < 0) {
return_code = RMNETCTL_API_ERR_MESSAGE_RECEIVE;
free(request_buf);
free(response_buf);
break;
}
......@@ -188,15 +183,11 @@ static uint16_t rmnetctl_transact(rmnetctl_hndl_t *hndl,
sizeof(struct rmnet_nl_msg_s));
if (sizeof(*response) < sizeof(struct rmnet_nl_msg_s)) {
return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
free(request_buf);
free(response_buf);
break;
}
if (request->message_type != response->message_type) {
return_code = RMNETCTL_API_ERR_MESSAGE_TYPE;
free(request_buf);
free(response_buf);
break;
}
return_code = RMNETCTL_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment