openocd: fix SPDX tag format for files .c
[fw/openocd] / src / flash / nand / tcl.c
index 6707314ccc824d3c87caebf02107c8b663aaa57c..4bb15faae7cf1d563540ace9ffcccf8ed3a8795a 100644 (file)
@@ -1,22 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /***************************************************************************
  *   Copyright (C) 2007 by Dominic Rath <Dominic.Rath@gmx.de>              *
  *   Copyright (C) 2002 Thomas Gleixner <tglx@linutronix.de>               *
  *   Copyright (C) 2009 Zachary T Welch <zw@superlucidity.net>             *
  *                                                                         *
  *   Partially based on drivers/mtd/nand_ids.c from Linux.                 *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -528,8 +517,7 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name,
        }
 
        if (controller->commands) {
-               retval = register_commands(CMD_CTX, NULL,
-                               controller->commands);
+               retval = register_commands(CMD_CTX, NULL, controller->commands);
                if (retval != ERROR_OK)
                        return retval;
        }