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

udf: remove un-needed variable from inode_getblk

The variable last_block is not needed.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Namjae Jeon and committed by
Jan Kara
6d31d15f fb719c59

-3
-3
fs/udf/inode.c
··· 587 587 static sector_t inode_getblk(struct inode *inode, sector_t block, 588 588 int *err, int *new) 589 589 { 590 - static sector_t last_block; 591 590 struct kernel_long_ad laarr[EXTENT_MERGE_SIZE]; 592 591 struct extent_position prev_epos, cur_epos, next_epos; 593 592 int count = 0, startnum = 0, endnum = 0; ··· 676 677 return newblock; 677 678 } 678 679 679 - last_block = block; 680 680 /* Are we beyond EOF? */ 681 681 if (etype == -1) { 682 682 int ret; ··· 717 719 memset(&laarr[c].extLocation, 0x00, 718 720 sizeof(struct kernel_lb_addr)); 719 721 count++; 720 - endnum++; 721 722 } 722 723 endnum = c + 1; 723 724 lastblock = 1;