git: 6dda38e5ca07 - stable/13 - makefs: remove unused variable

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 21 Apr 2023 21:20:22 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=6dda38e5ca071c30d8aa6322988569b5473d95a8

commit 6dda38e5ca071c30d8aa6322988569b5473d95a8
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-04-17 12:12:27 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-04-21 21:19:48 +0000

    makefs: remove unused variable
    
    Reported by:    Clang
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 79ead0849707396cb2de0bab7e354fb099ea344e)
---
 usr.sbin/makefs/cd9660/cd9660_write.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/usr.sbin/makefs/cd9660/cd9660_write.c b/usr.sbin/makefs/cd9660/cd9660_write.c
index 6716c2f98704..95038320a059 100644
--- a/usr.sbin/makefs/cd9660/cd9660_write.c
+++ b/usr.sbin/makefs/cd9660/cd9660_write.c
@@ -429,7 +429,6 @@ cd9660_copy_file(iso9660_disk *diskStructure, FILE *fd, off_t start_sector,
 {
 	FILE *rf;
 	int bytes_read;
-	off_t sector = start_sector;
 	int buf_size = diskStructure->sectorSize;
 	char *buf;
 
@@ -462,7 +461,6 @@ cd9660_copy_file(iso9660_disk *diskStructure, FILE *fd, off_t start_sector,
 			(void)fclose(rf);
 			return 0;
 		}
-		sector++;
 	}
 
 	fclose(rf);