Skip to content

Commit

Permalink
Merge pull request #318 from fredericdalleau/various-fixes
Browse files Browse the repository at this point in the history
Fix assertion turned into assignment
  • Loading branch information
rn committed Sep 14, 2021
2 parents acbc2d1 + cf60095 commit adc4ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ OCAML_LDLIBS := -L $(OCAML_WHERE) \
$(shell ocamlfind query cstruct)/cstruct.a \
$(shell ocamlfind query cstruct)/libcstruct_stubs.a \
$(shell ocamlfind query io-page)/io_page.a \
$(shell ocamlfind query io-page)/libio_page_stubs.a \
$(shell ocamlfind query io-page-unix)/io_page_unix.a \
$(shell ocamlfind query io-page-unix)/libio_page_unix_stubs.a \
$(shell ocamlfind query lwt.unix)/liblwt_unix_stubs.a \
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pci_virtio_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq)
case VBH_OP_DISCARD:
/* We currently limit the discard to one segment in the initial negotiation
so expect exactly one correctly-sized payload descriptor. */
assert(iov[1].iov_len = sizeof(struct virtio_blk_discard_write_zeroes));
assert(iov[1].iov_len == sizeof(struct virtio_blk_discard_write_zeroes));
assert(n == 2);
vbdiscard = iov[1].iov_base;
io->io_req.br_offset = (off_t) vbdiscard->sector * DEV_BSIZE;
Expand Down

0 comments on commit adc4ea8

Please sign in to comment.