Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfat: remove unused variable

Remove unused variable definition and related function definition and
redundant variable assignments within functions.

Link: https://lkml.kernel.org/r/tencent_9DE7CC9367096503F6ADD2BD960079267406@qq.com
Signed-off-by: zhoumin <teczm@foxmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

zhoumin and committed by
Andrew Morton
228bf041 95f09127

+3 -4
+3 -4
fs/fat/dir.c
··· 1209 1209 1210 1210 static int fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, 1211 1211 int *nr_cluster, struct msdos_dir_entry **de, 1212 - struct buffer_head **bh, loff_t *i_pos) 1212 + struct buffer_head **bh) 1213 1213 { 1214 1214 struct super_block *sb = dir->i_sb; 1215 1215 struct msdos_sb_info *sbi = MSDOS_SB(sb); ··· 1269 1269 get_bh(bhs[n]); 1270 1270 *bh = bhs[n]; 1271 1271 *de = (struct msdos_dir_entry *)((*bh)->b_data + offset); 1272 - *i_pos = fat_make_i_pos(sb, *bh, *de); 1273 1272 1274 1273 /* Second stage: clear the rest of cluster, and write outs */ 1275 1274 err = fat_zeroed_cluster(dir, start_blknr, ++n, bhs, MAX_BUF_PER_PAGE); ··· 1297 1298 struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */ 1298 1299 struct msdos_dir_entry *de; 1299 1300 int err, free_slots, i, nr_bhs; 1300 - loff_t pos, i_pos; 1301 + loff_t pos; 1301 1302 1302 1303 sinfo->nr_slots = nr_slots; 1303 1304 ··· 1385 1386 * add the cluster to dir. 1386 1387 */ 1387 1388 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, 1388 - &de, &bh, &i_pos); 1389 + &de, &bh); 1389 1390 if (cluster < 0) { 1390 1391 err = cluster; 1391 1392 goto error_remove;