mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
udf: fix sparse warning in namei.c
Let's use bsize instead. fs/udf/namei.c:960:12: warning: symbol 'elen' shadows an earlier one fs/udf/namei.c:937:15: originally declared here Signed-off-by: Harvey Harrison <[email protected]> Cc: Jan Kara <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
36a53ddf85
commit
78e917d59c
1 changed files with 4 additions and 4 deletions
|
|
@ -890,7 +890,7 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
|
|||
|
||||
if (iinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) {
|
||||
kernel_lb_addr eloc;
|
||||
uint32_t elen;
|
||||
uint32_t bsize;
|
||||
|
||||
block = udf_new_block(inode->i_sb, inode,
|
||||
iinfo->i_location.partitionReferenceNum,
|
||||
|
|
@ -903,9 +903,9 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
|
|||
eloc.logicalBlockNum = block;
|
||||
eloc.partitionReferenceNum =
|
||||
iinfo->i_location.partitionReferenceNum;
|
||||
elen = inode->i_sb->s_blocksize;
|
||||
iinfo->i_lenExtents = elen;
|
||||
udf_add_aext(inode, &epos, eloc, elen, 0);
|
||||
bsize = inode->i_sb->s_blocksize;
|
||||
iinfo->i_lenExtents = bsize;
|
||||
udf_add_aext(inode, &epos, eloc, bsize, 0);
|
||||
brelse(epos.bh);
|
||||
|
||||
block = udf_get_pblock(inode->i_sb, block,
|
||||
|
|
|
|||
Loading…
Reference in a new issue