]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
getty-generator: shift relevant comment to above tty_is_vc()
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 7 Aug 2017 16:23:41 +0000 (17:23 +0100)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 7 Aug 2017 16:23:41 +0000 (17:23 +0100)
Comments typically go immediately above the code to implement the
described behaviour.  Putting it below confused me for a moment.

src/getty-generator/getty-generator.c

index b15c76b5b8f2954879f7250aab7167e21feeb826..a143b5413bd7f0dd584dba4e1092f18e3405f5a8 100644 (file)
@@ -201,16 +201,16 @@ int main(int argc, char *argv[]) {
                                 return EXIT_FAILURE;
                         }
 
+                        /* We assume that gettys on virtual terminals are
+                         * started via manual configuration and do this magic
+                         * only for non-VC terminals. */
+
                         if (isempty(tty) || tty_is_vc(tty))
                                 continue;
 
                         if (verify_tty(tty) < 0)
                                 continue;
 
-                        /* We assume that gettys on virtual terminals are
-                         * started via manual configuration and do this magic
-                         * only for non-VC terminals. */
-
                         if (add_serial_getty(tty) < 0)
                                 return EXIT_FAILURE;
                 }