Skip to content

Commit 0c5050c

Browse files
committed
modify astyle
1 parent 18b8f4f commit 0c5050c

File tree

1 file changed

+4
-4
lines changed
  • storage/blockdevice/COMPONENT_SPINAND/source

1 file changed

+4
-4
lines changed

storage/blockdevice/COMPONENT_SPINAND/source/bch.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void bch_encode(struct bch_code *bch, unsigned char *data, unsigned int *ecc)
4848

4949
t[0] = bch->mod_tab;
5050
for (i = 1; i < 16; i++) {
51-
t[i] = t[i-1] + 4 * (bch->ecc_words);
51+
t[i] = t[i - 1] + 4 * (bch->ecc_words);
5252
}
5353

5454
memset(bch->ecc, 0, bch->ecc_words * sizeof(*bch->ecc));
@@ -116,8 +116,8 @@ static void build_syndrome(struct bch_code *bch)
116116
ecc_bits = i;
117117
while (*ecc) {
118118
if (*ecc & (unsigned int)1) {
119-
for (j = 0; j < 2*bch->t; j++) {
120-
bch->syn[j] ^= bch->a_pow[mod(bch, (j+1)*i)];
119+
for (j = 0; j < 2 * bch->t; j++) {
120+
bch->syn[j] ^= bch->a_pow[mod(bch, (j + 1) * i)];
121121
}
122122
}
123123
*ecc >>= 1;
@@ -187,7 +187,7 @@ static int chien_search(struct bch_code *bch, unsigned int deg)
187187
unsigned int syn, syn0;
188188
int *rep = (int *)bch->buf;
189189
int *root = (int *)bch->buf2;
190-
190+
191191
k = bch->n - bch->a_log[bch->elp[deg]];
192192
for (i = 0; i < deg; i++) {
193193
rep[i] = bch->elp[i] ? mod(bch, bch->a_log[ bch->elp[i] ] + k) : -1;

0 commit comments

Comments
 (0)