From 0c8271c801a8b2ba0581b4166a477ab0dbef2136 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 4 Jan 2022 15:21:40 +0000 Subject: [PATCH] Another -Wunused-but-set-variable fix. Based on input from dv@ --- usr.sbin/vmd/vioqcow2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/vmd/vioqcow2.c b/usr.sbin/vmd/vioqcow2.c index cabe191ae74..98dafdb0430 100644 --- a/usr.sbin/vmd/vioqcow2.c +++ b/usr.sbin/vmd/vioqcow2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vioqcow2.c,v 1.16 2021/06/16 16:55:02 dv Exp $ */ +/* $OpenBSD: vioqcow2.c,v 1.17 2022/01/04 15:21:40 claudio Exp $ */ /* * Copyright (c) 2018 Ori Bernstein @@ -497,12 +497,10 @@ mkcluster(struct qcdisk *disk, struct qcdisk *base, off_t off, off_t src_phys) { off_t l2sz, l1off, l2tab, l2off, cluster, clusteroff, orig; uint64_t buf; - int fd; pthread_rwlock_wrlock(&disk->lock); cluster = -1; - fd = disk->fd; /* L1 entries always exist */ l2sz = disk->clustersz / 8; l1off = off / (disk->clustersz * l2sz); -- 2.20.1