X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fflash%2Fnand_ecc_kw.c;h=b2ab6b242ef0b3a11ca8884dd25c06b883c88781;hb=111b7a6a9dbd68c906b8a8dff6e6c34d780297db;hp=de73326676c3ead5da91e969cd3b232a8ac6f4dc;hpb=310be8a838c9db6b67bc4d6d7d3c7ff41b32af4c;p=openocd diff --git a/src/flash/nand_ecc_kw.c b/src/flash/nand_ecc_kw.c index de733266..b2ab6b24 100644 --- a/src/flash/nand_ecc_kw.c +++ b/src/flash/nand_ecc_kw.c @@ -3,7 +3,7 @@ * Copyright (C) 2009 Marvell Semiconductor, Inc. * * Authors: Lennert Buytenhek - * Nicolas Pitre + * Nicolas Pitre * * This file is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -137,7 +137,7 @@ int nand_calculate_ecc_kw(struct nand_device_s *device, const uint8_t *data, uin d = data[i]; if (r7) { - u16 *t = gf_exp + gf_log[r7]; + uint16_t *t = gf_exp + gf_log[r7]; r7 = r6 ^ t[0x21c]; r6 = r5 ^ t[0x181];