svn commit: r245718 - projects/virtio/sys/dev/virtio/balloon
Bryan Venteicher
bryanv at FreeBSD.org
Mon Jan 21 06:54:34 UTC 2013
Author: bryanv
Date: Mon Jan 21 06:54:33 2013
New Revision: 245718
URL: http://svnweb.freebsd.org/changeset/base/245718
Log:
virtio_balloon: Remove two unuseful ASSERTs
These functions are never called when the balloon does
not need to be resized.
Approved by: grehan (implicit)
Modified:
projects/virtio/sys/dev/virtio/balloon/virtio_balloon.c
Modified: projects/virtio/sys/dev/virtio/balloon/virtio_balloon.c
==============================================================================
--- projects/virtio/sys/dev/virtio/balloon/virtio_balloon.c Mon Jan 21 06:53:18 2013 (r245717)
+++ projects/virtio/sys/dev/virtio/balloon/virtio_balloon.c Mon Jan 21 06:54:33 2013 (r245718)
@@ -323,7 +323,6 @@ vtballoon_inflate(struct vtballoon_softc
if (npages > VTBALLOON_PAGES_PER_REQUEST)
npages = VTBALLOON_PAGES_PER_REQUEST;
- KASSERT(npages > 0, ("balloon doesn't need inflating?"));
for (i = 0; i < npages; i++) {
if ((m = vtballoon_alloc_page(sc)) == NULL)
@@ -356,7 +355,6 @@ vtballoon_deflate(struct vtballoon_softc
if (npages > VTBALLOON_PAGES_PER_REQUEST)
npages = VTBALLOON_PAGES_PER_REQUEST;
- KASSERT(npages > 0, ("balloon doesn't need deflating?"));
for (i = 0; i < npages; i++) {
m = TAILQ_FIRST(&sc->vtballoon_pages);
More information about the svn-src-projects
mailing list