From: claudio Date: Tue, 4 Jan 2022 15:21:40 +0000 (+0000) Subject: Another -Wunused-but-set-variable fix. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0c8271c801a8b2ba0581b4166a477ab0dbef2136;p=openbsd Another -Wunused-but-set-variable fix. Based on input from dv@ --- 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);