From 6dae7038f9be86bce1b1f5e261f386aafc69c9f6 Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Wed, 16 Aug 2023 21:46:52 -0700 Subject: [PATCH] remove redundant superblock check --- lfs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lfs.c b/lfs.c index 90e1365f..b9807baf 100644 --- a/lfs.c +++ b/lfs.c @@ -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,