Skip to content
Permalink
Browse files

net: sntp: Ignore return value from close

Return value from close() can be ignored in sntp_close()
as it is not returning value to caller anyway.

Coverity-CID: 198863
Fixes #16584

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar committed Jun 7, 2019
1 parent 1c5fa6a commit 70aa383018c1e46260af9dcbb0e7b7d57d8b7302
Showing with 1 addition and 1 deletion.
  1. +1 −1 subsys/net/lib/sntp/sntp.c
@@ -207,6 +207,6 @@ int sntp_query(struct sntp_ctx *ctx, u32_t timeout, struct sntp_time *time)
void sntp_close(struct sntp_ctx *ctx)
{
if (ctx) {
close(ctx->sock.fd);
(void)close(ctx->sock.fd);
}
}

0 comments on commit 70aa383

Please sign in to comment.
You can’t perform that action at this time.