From d6d710212e7dc8dd0c34c26ab5242ce0299adef8 Mon Sep 17 00:00:00 2001 From: Wojciech Malikowski Date: Mon, 3 Jun 2019 04:20:34 -0400 Subject: [PATCH] lib/ftl: Removed not needed assertion from ftl_submit_write() This assert is not needed anymore. Change-Id: I7bc85c980c2e120b105b35763b9bea5960564acc Signed-off-by: Wojciech Malikowski Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456590 Reviewed-by: Konrad Sztyber Reviewed-by: Darek Stojaczyk Tested-by: SPDK CI Jenkins --- lib/ftl/ftl_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ftl/ftl_core.c b/lib/ftl/ftl_core.c index e2d05cc28..0ca6a346e 100644 --- a/lib/ftl/ftl_core.c +++ b/lib/ftl/ftl_core.c @@ -1230,14 +1230,11 @@ static int ftl_submit_write(struct ftl_wptr *wptr, struct ftl_io *io) { struct spdk_ftl_dev *dev = io->dev; - struct iovec *iov = ftl_io_iovec(io); int rc = 0; assert(io->lbk_cnt % dev->xfer_size == 0); while (io->iov_pos < io->iov_cnt) { - assert(iov[io->iov_pos].iov_len > 0); - /* There are no guarantees of the order of completion of NVMe IO submission queue */ /* so wait until chunk is not busy before submitting another write */ if (wptr->chunk->busy) {