udf: remove redundant variable netype
authorColin Ian King <colin.i.king@gmail.com>
Thu, 5 Jan 2023 13:49:25 +0000 (13:49 +0000)
committerJan Kara <jack@suse.cz>
Mon, 9 Jan 2023 09:39:53 +0000 (10:39 +0100)
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>
fs/udf/truncate.c

index 036ebd892b852993f4942882191fa663c2b7b552..775edaba82eedcb93a75fac86c2b9c39831fab5d 100644 (file)
@@ -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)