@@ -1132,7 +1132,7 @@ static const match_table_t vfat_tokens = {
1132
1132
};
1133
1133
1134
1134
static int parse_options (struct super_block * sb , char * options , int is_vfat ,
1135
- int silent , int * debug , struct fat_mount_options * opts )
1135
+ int silent , struct fat_mount_options * opts )
1136
1136
{
1137
1137
char * p ;
1138
1138
substring_t args [MAX_OPT_ARGS ];
@@ -1162,7 +1162,7 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat,
1162
1162
opts -> tz_set = 0 ;
1163
1163
opts -> nfs = 0 ;
1164
1164
opts -> errors = FAT_ERRORS_RO ;
1165
- * debug = 0 ;
1165
+ opts -> debug = 0 ;
1166
1166
1167
1167
opts -> utf8 = IS_ENABLED (CONFIG_FAT_DEFAULT_UTF8 ) && is_vfat ;
1168
1168
@@ -1210,7 +1210,7 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat,
1210
1210
opts -> showexec = 1 ;
1211
1211
break ;
1212
1212
case Opt_debug :
1213
- * debug = 1 ;
1213
+ opts -> debug = 1 ;
1214
1214
break ;
1215
1215
case Opt_immutable :
1216
1216
opts -> sys_immutable = 1 ;
@@ -1614,7 +1614,6 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
1614
1614
struct msdos_sb_info * sbi ;
1615
1615
u16 logical_sector_size ;
1616
1616
u32 total_sectors , total_clusters , fat_clusters , rootdir_sectors ;
1617
- int debug ;
1618
1617
long error ;
1619
1618
char buf [50 ];
1620
1619
struct timespec64 ts ;
@@ -1643,7 +1642,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
1643
1642
ratelimit_state_init (& sbi -> ratelimit , DEFAULT_RATELIMIT_INTERVAL ,
1644
1643
DEFAULT_RATELIMIT_BURST );
1645
1644
1646
- error = parse_options (sb , data , isvfat , silent , & debug , & sbi -> options );
1645
+ error = parse_options (sb , data , isvfat , silent , & sbi -> options );
1647
1646
if (error )
1648
1647
goto out_fail ;
1649
1648
0 commit comments