samples: net: coap_client: Fix coverity issue
Ignore socket close() return value in this sample. Fixes #18961 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
a5f4ad8df3
commit
e2b1ec8565
1 changed files with 2 additions and 2 deletions
|
@ -627,14 +627,14 @@ void main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close the socket */
|
/* Close the socket */
|
||||||
close(sock);
|
(void)close(sock);
|
||||||
|
|
||||||
LOG_DBG("Done");
|
LOG_DBG("Done");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
quit:
|
quit:
|
||||||
close(sock);
|
(void)close(sock);
|
||||||
|
|
||||||
LOG_ERR("quit");
|
LOG_ERR("quit");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue