diff options
Diffstat (limited to 'drivers/usb/storage/alauda.c')
-rw-r--r-- | drivers/usb/storage/alauda.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/storage/alauda.c b/drivers/usb/storage/alauda.c index 77a2ddfe6487..6636a583da12 100644 --- a/drivers/usb/storage/alauda.c +++ b/drivers/usb/storage/alauda.c | |||
@@ -249,11 +249,7 @@ static void nand_init_ecc(void) { | |||
249 | /* compute 3-byte ecc on 256 bytes */ | 249 | /* compute 3-byte ecc on 256 bytes */ |
250 | static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) { | 250 | static void nand_compute_ecc(unsigned char *data, unsigned char *ecc) { |
251 | int i, j, a; | 251 | int i, j, a; |
252 | unsigned char par, bit, bits[8]; | 252 | unsigned char par = 0, bit, bits[8] = {0}; |
253 | |||
254 | par = 0; | ||
255 | for (j = 0; j < 8; j++) | ||
256 | bits[j] = 0; | ||
257 | 253 | ||
258 | /* collect 16 checksum bits */ | 254 | /* collect 16 checksum bits */ |
259 | for (i = 0; i < 256; i++) { | 255 | for (i = 0; i < 256; i++) { |