X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fscb9328%2Fflash.c;h=73bfa00eed63ac993ede9bb9fc040a4424598223;hb=a6b541b09022acb6f7c2754100ae26bd44eed1d9;hp=00c660a2be18db29fa5df638b5f9585f72096d0f;hpb=74fac70084bb040342fafc3b0d2ef50fbe35646f;p=u-boot diff --git a/board/scb9328/flash.c b/board/scb9328/flash.c index 00c660a2be..73bfa00eed 100644 --- a/board/scb9328/flash.c +++ b/board/scb9328/flash.c @@ -4,26 +4,9 @@ * This code was inspired by Marius Groeger and Kyle Harris code * available in other board ports for U-Boot * - * See file CREDITS for list of people who contributed to this - * project. - * - * 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, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ * * Written by Peter Figuli , 2003. - * */ #include @@ -89,8 +72,10 @@ static FLASH_BUS_RET flash_status_reg (void) FLASH_BUS *addr = (FLASH_BUS *) 0; + /* cppcheck-suppress nullPointer */ *addr = FLASH_CMD (CFI_INTEL_CMD_READ_STATUS_REGISTER); + /* cppcheck-suppress nullPointer */ return *addr; }