From 7e19044f74b7f7fdd7eef52d0c0b564c29053425 Mon Sep 17 00:00:00 2001 From: Kamil Krzyzanowski Date: Fri, 26 Jan 2024 10:12:00 +0100 Subject: [PATCH] net: lib: download_client: Fix typo in download_client Finnished -> finished Signed-off-by: Kamil Krzyzanowski --- include/net/download_client.h | 4 ++-- subsys/net/lib/download_client/src/download_client.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/net/download_client.h b/include/net/download_client.h index bf88498ec769..1a8b811ee95e 100644 --- a/include/net/download_client.h +++ b/include/net/download_client.h @@ -223,7 +223,7 @@ struct download_client { DOWNLOAD_CLIENT_IDLE, DOWNLOAD_CLIENT_CONNECTING, DOWNLOAD_CLIENT_DOWNLOADING, - DOWNLOAD_CLIENT_FINNISHED, + DOWNLOAD_CLIENT_FINISHED, DOWNLOAD_CLIENT_CLOSING } state; }; @@ -338,7 +338,7 @@ int download_client_disconnect(struct download_client *client); * separate calls to download_client_set_host(), download_client_start() * and download_client_disconnect(). * - * Downloads are handled one at a time. If previous download is not finnished + * Downloads are handled one at a time. If previous download is not finished * this returns -EALREADY. * * The download is carried out in fragments of up to diff --git a/subsys/net/lib/download_client/src/download_client.c b/subsys/net/lib/download_client/src/download_client.c index 5f78361ee886..756a6c112eb9 100644 --- a/subsys/net/lib/download_client/src/download_client.c +++ b/subsys/net/lib/download_client/src/download_client.c @@ -91,7 +91,7 @@ static bool is_finished(struct download_client *client) bool ret; k_mutex_lock(&client->mutex, K_FOREVER); - ret = client->state == DOWNLOAD_CLIENT_FINNISHED; + ret = client->state == DOWNLOAD_CLIENT_FINISHED; k_mutex_unlock(&client->mutex); return ret; } @@ -890,7 +890,7 @@ void download_thread(void *client, void *a, void *b) if (dl->close_when_done) { set_state(dl, DOWNLOAD_CLIENT_CLOSING); } else { - set_state(dl, DOWNLOAD_CLIENT_FINNISHED); + set_state(dl, DOWNLOAD_CLIENT_FINISHED); } }