Skip to content

Commit 46cd189

Browse files
committed
Always build in lfs_mlist_isopen since lfs_file_ishandleopen uses it
1 parent bc7368a commit 46cd189

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ static inline void lfs_superblock_tole32(lfs_superblock_t *superblock) {
503503
}
504504
#endif
505505

506-
#ifndef LFS_NO_ASSERT
507506
static bool lfs_mlist_isopen(struct lfs_mlist *head,
508507
struct lfs_mlist *node) {
509508
for (struct lfs_mlist **p = &head; *p; p = &(*p)->next) {
@@ -514,7 +513,6 @@ static bool lfs_mlist_isopen(struct lfs_mlist *head,
514513

515514
return false;
516515
}
517-
#endif
518516

519517
static void lfs_mlist_remove(lfs_t *lfs, struct lfs_mlist *mlist) {
520518
for (struct lfs_mlist **p = &lfs->mlist; *p; p = &(*p)->next) {

0 commit comments

Comments
 (0)