[PATCH 1/4] MIPS: mach-ar231x: Fix uninitialized variable
Alexander Shiyan
shc_work at mail.ru
Wed Jan 29 13:21:46 EST 2014
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
arch/mips/mach-ar231x/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/mach-ar231x/board.c b/arch/mips/mach-ar231x/board.c
index f1b876f..8bd1787 100644
--- a/arch/mips/mach-ar231x/board.c
+++ b/arch/mips/mach-ar231x/board.c
@@ -111,7 +111,7 @@ static u16
ar231x_cksum16(u8 *data, int size)
{
int i;
- u16 sum;
+ u16 sum = 0;
for (i = 0; i < size; i++)
sum += data[i];
--
1.8.3.2
More information about the barebox
mailing list