openocd: fix SPDX tag format for files .c
[fw/openocd] / src / flash / nand / arm_io.c
index 705470e77b6b3453660fbb7cfd2f0825e9860e8a..80bd0cf25b02cebede806f63e7df6d118ee276d4 100644 (file)
@@ -1,21 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
 /*
  * Copyright (C) 2009 by Marvell Semiconductors, Inc.
  * Written by Nicolas Pitre <nico at marvell.com>
  *
  * Copyright (C) 2009 by David Brownell
- *
- * 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
@@ -55,7 +44,7 @@ static int arm_code_to_working_area(struct target *target,
         */
 
        /* make sure we have a working area */
-       if (NULL == *area) {
+       if (!*area) {
                retval = target_alloc_working_area(target, size, area);
                if (retval != ERROR_OK) {
                        LOG_DEBUG("%s: no %d byte buffer", __func__, (int) size);