Skip to content

Commit

Permalink
remove redundant superblock check
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Aug 17, 2023
1 parent 7328527 commit 6dae703
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4494,12 +4494,6 @@ static int lfs_rawmount(lfs_t *lfs, const struct lfs_config *cfg) {
goto cleanup;
}

// found superblock?
if (lfs_pair_isnull(lfs->root)) {
err = LFS_ERR_INVAL;
goto cleanup;
}

// update littlefs with gstate
if (!lfs_gstate_iszero(&lfs->gstate)) {
LFS_DEBUG("Found pending gstate 0x%08"PRIx32"%08"PRIx32"%08"PRIx32,
Expand Down

0 comments on commit 6dae703

Please sign in to comment.