mtd: doc2000: fix uninitialized variable in doc_ecc_decode()
authorMark Ware <mware@elphinstone.net>
Thu, 27 May 2010 01:45:39 +0000 (11:45 +1000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 4 Aug 2010 09:56:06 +0000 (10:56 +0100)
commitc9fb67735b307a3cdf57e568b6c50c860248d1d3
treee29ce16472698497bf28081eaeaae139e06b7c4d
parent7b0507eb697ea157533b9a7e0a955f64a00b1b1d
mtd: doc2000: fix uninitialized variable in doc_ecc_decode()

The variable 'syn' was being used uninitialized.  Also
fixed incorrect use of syn[] vs s[].

Tested on powerpc board with 64MiB DOC2000.

Signed-off-by: Mark Ware <mware@elphinstone.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/diskonchip.c