net/can/can_setsockopt&can_getsockopt.c: Initialiaze ret variable to

eliminate any warning.
This commit is contained in:
Ouss4 2020-06-15 19:39:41 +01:00 committed by patacongo
parent 155903fc54
commit c8d83e0a88
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ int can_getsockopt(FAR struct socket *psock, int option,
FAR void *value, FAR socklen_t *value_len) FAR void *value, FAR socklen_t *value_len)
{ {
FAR struct can_conn_s *conn; FAR struct can_conn_s *conn;
int ret; int ret = OK;
DEBUGASSERT(psock != NULL && value != NULL && value_len != NULL && DEBUGASSERT(psock != NULL && value != NULL && value_len != NULL &&
psock->s_conn != NULL); psock->s_conn != NULL);

View File

@ -73,7 +73,7 @@ int can_setsockopt(FAR struct socket *psock, int option,
FAR const void *value, socklen_t value_len) FAR const void *value, socklen_t value_len)
{ {
FAR struct can_conn_s *conn; FAR struct can_conn_s *conn;
int ret; int ret = OK;
int count = 0; int count = 0;
DEBUGASSERT(psock != NULL && value != NULL && psock->s_conn != NULL); DEBUGASSERT(psock != NULL && value != NULL && psock->s_conn != NULL);