diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2015-03-03 17:21:28 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-03-04 15:40:14 +1100 |
commit | 9dc372a7417570b9194a8552699718a9decbdc3f (patch) | |
tree | 661a97a1ea720e246c38f3d8a1d482678907c326 /libflash | |
parent | 7c3b463e98590ddb9c01e6e88057eca00da28cad (diff) | |
download | skiboot-9dc372a7417570b9194a8552699718a9decbdc3f.zip skiboot-9dc372a7417570b9194a8552699718a9decbdc3f.tar.gz skiboot-9dc372a7417570b9194a8552699718a9decbdc3f.tar.bz2 |
libflash: whitespace fixups for ecc.c
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/ecc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libflash/ecc.c b/libflash/ecc.c index cf0393c..2fca0fa 100644 --- a/libflash/ecc.c +++ b/libflash/ecc.c @@ -99,12 +99,12 @@ static uint8_t syndromematrix[] = { static uint8_t eccgenerate(uint64_t data) { int i; - uint8_t result = 0; + uint8_t result = 0; - for (i = 0; i < 8; i++) + for (i = 0; i < 8; i++) result |= __builtin_parityl(eccmatrix[i] & data) << i; - return result; + return result; } /** @@ -121,7 +121,7 @@ static uint8_t eccgenerate(uint64_t data) */ static uint8_t eccverify(uint64_t data, uint8_t ecc) { - return syndromematrix[eccgenerate(data) ^ ecc]; + return syndromematrix[eccgenerate(data) ^ ecc]; } /** @@ -172,6 +172,6 @@ uint8_t eccmemcpy(uint64_t *dst, uint64_t *src, uint32_t len) if (badbit < 64) *dst = *data ^ (1ul << (63 - badbit)); dst++; - } - return GD; + } + return GD; } |