kernel: debug: Convert to SPDX identifier
[linux-2.6-microblaze.git] / kernel / debug / debug_core.c
index 4708aec..da06a55 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * Kernel Debug Core
  *
  *
  * Original KGDB stub: David Grothe <dave@gcom.com>,
  * Tigran Aivazian <tigran@sco.com>
- *
- * This file is licensed under the terms of the GNU General Public License
- * version 2. This program is licensed "as is" without any warranty of any
- * kind, whether express or implied.
  */
 
 #define pr_fmt(fmt) "KGDB: " fmt
@@ -1032,12 +1029,13 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x)
        /*
         * Take the following action on reboot notify depending on value:
         *    1 == Enter debugger
-        *    0 == [the default] detatch debug client
+        *    0 == [the default] detach debug client
         *   -1 == Do nothing... and use this until the board resets
         */
        switch (kgdbreboot) {
        case 1:
                kgdb_breakpoint();
+               goto done;
        case -1:
                goto done;
        }