Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Redundant function calls #3

@FrankHB

Description

@FrankHB

In "source/file_allocation_table.c":

uint32_t _FAT_fat_lastCluster (PARTITION* partition, uint32_t cluster) {
    while ((_FAT_fat_nextCluster(partition, cluster) != CLUSTER_FREE) && (_FAT_fat_nextCluster(partition, cluster) != CLUSTER_EOF)) {
        cluster = _FAT_fat_nextCluster(partition, cluster);
    }
    return cluster;
}

It seems that mutiple '_FAT_fat_nextCluster' calls can be merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions