From d3f07d5ca2a459e3410611902d2de02bb7be1ae7 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 20 Apr 2021 13:46:29 +0200 Subject: [PATCH] cloud-setup: remove redundant check in Azure's _get_net_ifaces_list_cb() This condition always true, because there is a check above. --- src/nm-cloud-setup/nmcs-provider-azure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-cloud-setup/nmcs-provider-azure.c b/src/nm-cloud-setup/nmcs-provider-azure.c index a46f56a40d..af2062476c 100644 --- a/src/nm-cloud-setup/nmcs-provider-azure.c +++ b/src/nm-cloud-setup/nmcs-provider-azure.c @@ -432,7 +432,7 @@ _get_net_ifaces_list_cb(GObject *source, GAsyncResult *result, gpointer user_dat * extra NULL character after the buffer. */ ((char *) line)[line_len] = '\0'; - if (line[line_len - 1] == '/' && line_len != 0) + if (line[line_len - 1] == '/') ((char *) line)[--line_len] = '\0'; intern_iface_idx = _nm_utils_ascii_str_to_int64(line, 10, 0, G_MAXSSIZE, -1);