diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-01-04 15:21:41 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-01-04 15:21:41 +0000 |
commit | 3e48b6189c43a189ff618dca995e064547d764b6 (patch) | |
tree | a37131f57b27dec2666001f193e42531fc193899 /usr.sbin/vmd | |
parent | b1b61871ae6706936eb404624d70a8d917a2f45b (diff) |
Another -Wunused-but-set-variable fix.
Based on input from dv@
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r-- | usr.sbin/vmd/vioqcow2.c | 4 |
1 files changed, 1 insertions, 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 <ori@eigenstate.org> @@ -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); |