Refactor disk_open calling: now the disk must be opened before passing it to battfs_m...
[bertos.git] / bertos / fs / battfs.c
index 415e49e28e329614e4a3f2f46c74ae4ec742325f..93a8868e868b66e5b3950dddaf78f5382b996436 100644 (file)
@@ -442,16 +442,6 @@ bool battfs_mount(struct BattFsSuper *disk)
 {
        pgoff_t filelen_table[BATTFS_MAX_FILES];
 
-       /* Sanity check */
-       ASSERT(disk->open);
-
-       /* Init disk device */
-       if (!disk->open(disk))
-       {
-               LOG_ERR("open error\n");
-               return false;
-       }
-
        /* Disk open must set all of these */
        ASSERT(disk->read);
        ASSERT(disk->load);