]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysupdate: drop redundant ()
authorLennart Poettering <lennart@amutable.com>
Tue, 30 Jun 2026 19:46:57 +0000 (21:46 +0200)
committerLennart Poettering <lennart@amutable.com>
Fri, 3 Jul 2026 14:09:49 +0000 (16:09 +0200)
Just a tiny simplification

src/sysupdate/sysupdate.c

index e5af39849c573d1e1f04a779eaf714db5cf3e0fd..87c1cc6d4292e4b22d8de54fee4e0c59660e88a8 100644 (file)
@@ -2155,11 +2155,12 @@ static int context_list_components(Context *context, char ***ret_component_names
         /* Does the system have at least one transfer file in /etc/sysupdate.d, which can be considered a
          * TARGET_HOST? See target_get_argument() in sysupdated.c */
         if (ret_has_default_component)
-                *ret_has_default_component = (!context->definitions &&
-                                          !context->component &&
-                                          !context->root &&
-                                          !context->image &&
-                                          context->n_transfers > 0);
+                *ret_has_default_component =
+                        !context->definitions &&
+                        !context->component &&
+                        !context->root &&
+                        !context->image &&
+                        context->n_transfers > 0;
 
         return 0;
 }