aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xen
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-07-26 12:01:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-07-26 17:59:55 +0000
commite635220e1a330560ee547069054d81c4cf0b7839 (patch)
tree3ec002bcd56cf5d5e773eaf1586193202cdd2665 /sys/dev/xen
parent57c46916e145581807333bc06a08e9532721bd8f (diff)
Diffstat (limited to 'sys/dev/xen')
-rw-r--r--sys/dev/xen/blkfront/blkfront.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/xen/blkfront/blkfront.c b/sys/dev/xen/blkfront/blkfront.c
index 9dc1252e5756..d6b2c0b68466 100644
--- a/sys/dev/xen/blkfront/blkfront.c
+++ b/sys/dev/xen/blkfront/blkfront.c
@@ -599,7 +599,6 @@ xbd_dump(void *arg, void *virtual, off_t offset, size_t length)
struct xbd_softc *sc = dp->d_drv1;
struct xbd_command *cm;
size_t chunk;
- int sbp;
int rc = 0;
if (length == 0)
@@ -614,7 +613,7 @@ xbd_dump(void *arg, void *virtual, off_t offset, size_t length)
mtx_lock(&sc->xbd_io_lock);
/* Split the 64KB block as needed */
- for (sbp=0; length > 0; sbp++) {
+ while (length > 0) {
cm = xbd_dequeue_cm(sc, XBD_Q_FREE);
if (cm == NULL) {
mtx_unlock(&sc->xbd_io_lock);