Skip to content

Commit

Permalink
samples/net/dhcpv4_client: remove unused var "iface" from sample
Browse files Browse the repository at this point in the history
The var "iface" is unused in this sample code, so remove from source.

Signed-off-by: Florian La Roche <[email protected]>
  • Loading branch information
laroche authored and carlescufi committed Aug 23, 2023
1 parent 271004a commit 572a23f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions samples/net/dhcpv4_client/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,12 @@ static void option_handler(struct net_dhcpv4_option_callback *cb,

int main(void)
{
struct net_if *iface;

LOG_INF("Run dhcpv4 client");

net_mgmt_init_event_callback(&mgmt_cb, handler,
NET_EVENT_IPV4_ADDR_ADD);
net_mgmt_add_event_callback(&mgmt_cb);

iface = net_if_get_default();

net_dhcpv4_init_option_callback(&dhcp_cb, option_handler,
DHCP_OPTION_NTP, ntp_server,
sizeof(ntp_server));
Expand Down

0 comments on commit 572a23f

Please sign in to comment.