summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-04-20 13:46:29 +0200
committerThomas Haller <thaller@redhat.com>2021-04-20 17:46:04 +0200
commitd3f07d5ca2a459e3410611902d2de02bb7be1ae7 (patch)
treed3337b63454917f13a93f516d655a2791d780d3b
parent70b7ad1a761405f4ac9398832d0365c47cd5aa0f (diff)
downloadNetworkManager-d3f07d5ca2a459e3410611902d2de02bb7be1ae7.tar.gz
cloud-setup: remove redundant check in Azure's _get_net_ifaces_list_cb()
This condition always true, because there is a check above.
-rw-r--r--src/nm-cloud-setup/nmcs-provider-azure.c2
1 files changed, 1 insertions, 1 deletions
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);