Merge branch 'master' of git://git.denx.de/u-boot-socfpga
[platform/kernel/u-boot.git] / board / sacsng / sacsng.c
index 09f59a0..91c4987 100644 (file)
@@ -3,23 +3,7 @@
  * Custom IDEAS, Inc. <www.cideas.com>
  * Gerald Van Baren <vanbaren@cideas.com>
  *
- * 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+
  */
 
 #include <common.h>
@@ -177,7 +161,6 @@ phys_size_t initdram(int board_type)
        uint sdam;
        uint bsma;
        uint sda10;
-       u_char spd_size;
        u_char data;
        u_char cksum;
        int j;
@@ -192,7 +175,6 @@ phys_size_t initdram(int board_type)
         * Read the SDRAM SPD EEPROM via I2C.
         */
        i2c_read(SDRAM_SPD_ADDR, 0, 1, &data, 1);
-       spd_size = data;
        cksum = data;
        for (j = 1; j < 64; j++) {      /* read only the checksummed bytes */
                /* note: the I2C address autoincrements when alen == 0 */