git: 09f68ad046a6 - stable/14 - camcontrol: remove unused variable

From: Siva Mahadevan <siva_at_FreeBSD.org>
Date: Mon, 14 Sep 2026 14:47:27 UTC
The branch stable/14 has been updated by siva:

URL: https://cgit.FreeBSD.org/src/commit/?id=09f68ad046a6b812f8580787c6be81c9ead409fe

commit 09f68ad046a6b812f8580787c6be81c9ead409fe
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-09-10 14:40:03 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-09-14 14:32:23 +0000

    camcontrol: remove unused variable
    
    This fixes the build with gcc 16 after the changes
    to -Wunused*[0].
    
    [0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused
    
    Reviewed by:    ken, imp
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D59540
    
    (cherry picked from commit 076c9db51f95291f73c25b39a8c9c4206c050bc1)
---
 sbin/camcontrol/persist.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sbin/camcontrol/persist.c b/sbin/camcontrol/persist.c
index d6fb9c6a5f2c..abc266c69d8b 100644
--- a/sbin/camcontrol/persist.c
+++ b/sbin/camcontrol/persist.c
@@ -373,7 +373,6 @@ persist_print_full(struct scsi_per_res_in_header *hdr, uint32_t valid_len)
 	uint32_t length, len_to_go = 0;
 	struct scsi_per_res_in_full_desc *desc;
 	uint8_t *cur_pos;
-	int i;
 
 	length = scsi_4btoul(hdr->length);
 	length = MIN(length, valid_len);
@@ -389,10 +388,10 @@ persist_print_full(struct scsi_per_res_in_header *hdr, uint32_t valid_len)
 
 	fprintf(stdout, "PRgeneration: %#x\n", scsi_4btoul(hdr->generation));
 	cur_pos = (uint8_t *)&hdr[1];
-	for (len_to_go = length, i = 0,
+	for (len_to_go = length,
 	     desc = (struct scsi_per_res_in_full_desc *)cur_pos;
 	     len_to_go >= sizeof(*desc);
-	     desc = (struct scsi_per_res_in_full_desc *)cur_pos, i++) {
+	     desc = (struct scsi_per_res_in_full_desc *)cur_pos) {
 		uint32_t additional_length, cur_length;