summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-01-05 13:49:25 +0000
committerJan Kara <jack@suse.cz>2023-01-09 10:39:53 +0100
commit1fb40763a58c1f8130c0131c624060c6bbb929b8 (patch)
tree62272a172e6fd137eb94b3ddfb0c57a022fbe44f /fs/udf
parent85a37983ec69cc9fcd188bc37c4de15ee326355a (diff)
downloadlinux-1fb40763a58c1f8130c0131c624060c6bbb929b8.tar.gz
linux-1fb40763a58c1f8130c0131c624060c6bbb929b8.tar.bz2
linux-1fb40763a58c1f8130c0131c624060c6bbb929b8.zip
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: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/truncate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/truncate.c b/fs/udf/truncate.c
index 036ebd892b85..775edaba82ee 100644
--- a/fs/udf/truncate.c
+++ b/fs/udf/truncate.c
@@ -125,7 +125,7 @@ void udf_discard_prealloc(struct inode *inode)
struct kernel_lb_addr eloc;
uint32_t elen;
uint64_t lbcount = 0;
- int8_t etype = -1, netype;
+ int8_t etype = -1;
struct udf_inode_info *iinfo = UDF_I(inode);
int bsize = 1 << inode->i_blkbits;
@@ -136,7 +136,7 @@ void udf_discard_prealloc(struct inode *inode)
epos.block = iinfo->i_location;
/* 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);
prev_epos = epos;
if (prev_epos.bh)