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
This commit is contained in:
Siva Mahadevan committed 2026-09-10 10:40:03 -04:00
1 parent e1a1206245
commit 076c9db51f
1 file changed
+2 -3
+2 -3
View File
@@ -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;