Skip to content

Commit 35f7fa6

Browse files
committed
Lint format
1 parent ce57cbf commit 35f7fa6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

stm32h7/littlefs_shim.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SD_HandleTypeDef *lfsshim_hsd;
88
uint32_t lfsshim_first_block_offset = 0;
99

1010
static int lfsshim_read(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, void *buffer,
11-
lfs_size_t size) {
11+
lfs_size_t size) {
1212
uint32_t block_addr = block + lfsshim_first_block_offset;
1313

1414
w_assert((size % c->block_size) == 0);
@@ -33,8 +33,8 @@ static int lfsshim_read(const struct lfs_config *c, lfs_block_t block, lfs_off_t
3333
return 0; // success
3434
}
3535

36-
static int lfsshim_write(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, const void *buffer,
37-
lfs_size_t size) {
36+
static int lfsshim_write(const struct lfs_config *c, lfs_block_t block, lfs_off_t off,
37+
const void *buffer, lfs_size_t size) {
3838
uint32_t block_addr = block + lfsshim_first_block_offset;
3939

4040
w_assert((size % c->block_size) == 0);
@@ -67,7 +67,6 @@ static int lfsshim_sync(const struct lfs_config *c) {
6767
return 0;
6868
}
6969

70-
7170
// configuration of the filesystem is provided by this struct
7271
const struct lfs_config cfg = {
7372
// block device operations
@@ -95,8 +94,7 @@ int lfsshim_mount(lfs_t *lfs) {
9594
memset(lfs, 0, sizeof(lfs_t));
9695

9796
if (lfs_mount(lfs, &cfg) != 0) {
98-
return W_IO_ERROR;
97+
return W_IO_ERROR;
9998
}
10099
return 0; // success
101-
102100
}

0 commit comments

Comments
 (0)