Commit 1fb40763 authored by Colin Ian King's avatar Colin Ian King Committed by Jan Kara

udf: remove redundant variable netype

The variable netype is assigned a value that is never read, the assignment
is redundant the variable can be removed.

Message-Id: <20230105134925.45599-1-colin.i.king@gmail.com>
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 85a37983
...@@ -125,7 +125,7 @@ void udf_discard_prealloc(struct inode *inode) ...@@ -125,7 +125,7 @@ void udf_discard_prealloc(struct inode *inode)
struct kernel_lb_addr eloc; struct kernel_lb_addr eloc;
uint32_t elen; uint32_t elen;
uint64_t lbcount = 0; uint64_t lbcount = 0;
int8_t etype = -1, netype; int8_t etype = -1;
struct udf_inode_info *iinfo = UDF_I(inode); struct udf_inode_info *iinfo = UDF_I(inode);
int bsize = 1 << inode->i_blkbits; int bsize = 1 << inode->i_blkbits;
...@@ -136,7 +136,7 @@ void udf_discard_prealloc(struct inode *inode) ...@@ -136,7 +136,7 @@ void udf_discard_prealloc(struct inode *inode)
epos.block = iinfo->i_location; epos.block = iinfo->i_location;
/* Find the last extent in the file */ /* Find the last extent in the file */
while ((netype = udf_next_aext(inode, &epos, &eloc, &elen, 0)) != -1) { while (udf_next_aext(inode, &epos, &eloc, &elen, 0) != -1) {
brelse(prev_epos.bh); brelse(prev_epos.bh);
prev_epos = epos; prev_epos = epos;
if (prev_epos.bh) if (prev_epos.bh)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment