aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/mmcsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/mmcsd.c')
-rw-r--r--os/hal/src/mmcsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/src/mmcsd.c b/os/hal/src/mmcsd.c
index 88f8a5505..44a552cbd 100644
--- a/os/hal/src/mmcsd.c
+++ b/os/hal/src/mmcsd.c
@@ -58,7 +58,7 @@ static uint32_t mmcsd_get_slice(uint32_t *data, uint32_t end, uint32_t start) {
chDbgCheck(end >= start, "sdc_get_slice");
- while ((start - 32 * word) > 31){
+ while ((start - 32 * word) > 31) {
word++;
data++;
}
@@ -66,12 +66,12 @@ static uint32_t mmcsd_get_slice(uint32_t *data, uint32_t end, uint32_t start) {
end -= 32 * word;
start -= 32 * word;
- if (end < 31){
+ if (end < 31) {
/* Value lays in one word.*/
mask = (1 << (end - start + 1)) - 1;
return (*data >> start) & mask;
}
- else{
+ else {
/* Value spread on separate words.*/
uint32_t lsb, msb;
lsb = *data >> start;