Re: [PATCH v3 07/13] exfat: add bitmap operations

From: Markus Elfring
Date: Wed Nov 20 2019 - 15:38:39 EST


â
> +++ b/fs/exfat/balloc.c
â
> +int exfat_load_bitmap(struct super_block *sb)
> +{
â
> + struct exfat_dentry *ep = NULL;
â
> + while (clu.dir != EOF_CLUSTER) {
> + for (i = 0; i < sbi->dentries_per_clu; i++) {
> + ep = exfat_get_dentry(sb, &clu, i, &bh, NULL);
> + if (!ep)
> + return -EIO;
â

How do you think about to move the definition for the variable âepâ
to the beginning of the for loop so that the extra pointer initialisation
can be omitted?

Regards,
Markus