mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-11-16 12:34:34 +00:00
remove redundant superblock check
This commit is contained in:
6
lfs.c
6
lfs.c
@@ -4494,12 +4494,6 @@ static int lfs_rawmount(lfs_t *lfs, const struct lfs_config *cfg) {
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
// found superblock?
|
|
||||||
if (lfs_pair_isnull(lfs->root)) {
|
|
||||||
err = LFS_ERR_INVAL;
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
// update littlefs with gstate
|
// update littlefs with gstate
|
||||||
if (!lfs_gstate_iszero(&lfs->gstate)) {
|
if (!lfs_gstate_iszero(&lfs->gstate)) {
|
||||||
LFS_DEBUG("Found pending gstate 0x%08"PRIx32"%08"PRIx32"%08"PRIx32,
|
LFS_DEBUG("Found pending gstate 0x%08"PRIx32"%08"PRIx32"%08"PRIx32,
|
||||||
|
|||||||
Reference in New Issue
Block a user