mufs: do not write back in mufs_next_free_block()
This commit is contained in:
parent
ed5e3ef8ea
commit
bc28781181
1 changed files with 0 additions and 4 deletions
|
@ -55,10 +55,6 @@ static size_t mufs_next_free_block(struct mufs *fs)
|
|||
if ((index = next_clear_bit(data, bitlen)) != SIZE_MAX)
|
||||
return (offset >> (ilog2(8) + ilog2(32))) + index;
|
||||
|
||||
if (flash_write(fs->dev, (1 << dev->log2_block_size) + offset, data,
|
||||
len) == 0)
|
||||
return SIZE_MAX;
|
||||
|
||||
offset += len;
|
||||
nblocks -= bitlen;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue