Skip to content

Commit

Permalink
drivers: modem: ublox-sara-r4: freeaddrinfo mark unused param
Browse files Browse the repository at this point in the history
The res param in offload_freeaddrinfo is not used.
Mark it as unused, to avoid static analysis complaining about
Parse warning (PW.PARAM_SET_BUT_NOT_USED)
Fixes CID 316235

Signed-off-by: Thomas Stranger <[email protected]>
  • Loading branch information
str4t0m authored and henrikbrixandersen committed Feb 8, 2024
1 parent b65ab5f commit cbc75f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/modem/ublox-sara-r4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ static int offload_getaddrinfo(const char *node, const char *service,
static void offload_freeaddrinfo(struct zsock_addrinfo *res)
{
/* using static result from offload_getaddrinfo() -- no need to free */
res = NULL;
ARG_UNUSED(res);
}

static const struct socket_dns_offload offload_dns_ops = {
Expand Down

0 comments on commit cbc75f8

Please sign in to comment.