git: 79ead0849707 - main - makefs: remove unused variable

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 17 Apr 2023 12:22:56 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=79ead0849707396cb2de0bab7e354fb099ea344e

commit 79ead0849707396cb2de0bab7e354fb099ea344e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-04-17 12:12:27 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-04-17 12:22:12 +0000

    makefs: remove unused variable
    
    Reported by:    Clang
    Sponsored by:   The FreeBSD Foundation
---
 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);