]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Minor clean up to xbd_queue_cb:
authorColin Percival <cperciva@FreeBSD.org>
Fri, 19 Jun 2015 22:40:58 +0000 (22:40 +0000)
committerColin Percival <cperciva@FreeBSD.org>
Fri, 19 Jun 2015 22:40:58 +0000 (22:40 +0000)
commitd33a1217bdbd109c259b69e43f0464eaec44bd45
tree874960ee1201b87ef905202f9f60b6f2c477ff82
parent15e862e33c38d4dfc9733cce353d4d76934207a6
Minor clean up to xbd_queue_cb:
* nsegs must be at most BLKIF_MAX_SEGMENTS_PER_REQUEST (since we specify
  that limit to bus_dma_tag_create), so KASSERT that rather than silently
  adjusting the request.
* block_segs is now a synonym for nsegs, so garbage collect that variable.
* nsegs is never read during or after the while loop, so remove the dead
  decrement from the loop.

These were all left behind from the pre-r284296 support for a "segment
block" extension.
sys/dev/xen/blkfront/blkfront.c