basic/unit-name: adjust comments
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Jun 2021 09:52:56 +0000 (11:52 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 13 Jul 2021 17:29:24 +0000 (18:29 +0100)
We already checked for "too long" right above…

Gbp-Pq: Name basic-unit-name-adjust-comments.patch

src/basic/unit-name.c

index 9b6cacde87d9bb8fc151b2313412d9c2a0129b5b..e2868314865a277f983a600f14ab4c9dc0374e2a 100644 (file)
@@ -528,7 +528,7 @@ int unit_name_from_path(const char *path, const char *suffix, char **ret) {
         if (strlen(s) >= UNIT_NAME_MAX) /* Return a slightly more descriptive error for this specific condition */
                 return -ENAMETOOLONG;
 
-        /* Refuse this if this got too long or for some other reason didn't result in a valid name */
+        /* Refuse if this for some other reason didn't result in a valid name */
         if (!unit_name_is_valid(s, UNIT_NAME_PLAIN))
                 return -EINVAL;
 
@@ -562,7 +562,7 @@ int unit_name_from_path_instance(const char *prefix, const char *path, const cha
         if (strlen(s) >= UNIT_NAME_MAX) /* Return a slightly more descriptive error for this specific condition */
                 return -ENAMETOOLONG;
 
-        /* Refuse this if this got too long or for some other reason didn't result in a valid name */
+        /* Refuse if this for some other reason didn't result in a valid name */
         if (!unit_name_is_valid(s, UNIT_NAME_INSTANCE))
                 return -EINVAL;