udf: remove un-needed variable from inode_getblk
PATCH 4/6 udf: remove un-needed variable from inode_getblk
From: Namjae Jeon <[email protected]>
The variable last_block is not needed.
Signed-off-by Namjae Jeon <[email protected]>
Signed-off-by Ashish Sangwan <[email protected]>
--- fs/udf/inode.c | 3 --- 1 file changed, 3 deletions(-)
fs/udf/inode.c +0 -3
@@ -587,7 +587,6 @@ out:static sector_t inode_getblk (struct inode *inode,sector_t block,int *err,int *new) { -static sector_t last_block;struct kernel_long_ad laarr[EXTENT_MERGE_SIZE ];struct extent_position prev_epos, cur_epos, next_epos;int count =0 , startnum =0 , endnum =0 ;
@@ -677,7 +676,6 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,return newblock; } - last_block = block;/* Are we beyond EOF? */ if (etype ==-1 ) {int ret;
@@ -719,7 +717,6 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,memset (&laarr[c].extLocation,0x00 ,sizeof (struct kernel_lb_addr )); count++; - endnum++; } endnum = c +1 ; lastblock =1 ;
Signature · 1 line
1.7.9.5
Quoted 6 lines · Namjae Jeon
From: Namjae Jeon <[email protected]>
The variable
last_blockis not needed.Signed-off-by Namjae Jeon <[email protected]>Signed-off-by Ashish Sangwan <[email protected]>
Thanks. I've merged the patch.
Honza
Quoted 35 lines
--- fs/udf/inode.c | 3 --- 1 file changed, 3 deletions(-)fs/udf/inode.c +0
-3@@ -587,7 +587,6 @@ out:static sector_t inode_getblk (struct inode *inode,sector_t block,int *err,int *new) { -static sector_t last_block;struct kernel_long_ad laarr[EXTENT_MERGE_SIZE ];struct extent_position prev_epos, cur_epos, next_epos;int count =0 , startnum =0 , endnum =0 ;@@ -677,7 +676,6 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,return newblock; } - last_block = block;/* Are we beyond EOF? */ if (etype ==-1 ) {int ret;@@ -719,7 +717,6 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,memset (&laarr[c].extLocation,0x00 ,sizeof (struct kernel_lb_addr )); count++; - endnum++; } endnum = c +1 ; lastblock =1 ;Signature · 1 line
1.7.9.5
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR