The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9f2a288cbc5b3c7b101e92b80feca2ea664174fb
commit 9f2a288cbc5b3c7b101e92b80feca2ea664174fb Author: Fuqian Huang <[email protected]> AuthorDate: 2019-06-28 02:47:19 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2026-09-15 14:22:40 +0000 iw_cxgbe: Remove unneeded memset Obtained from: Linux commit 4c44d4634b5c90993fccca9f155347221df6f877 --- sys/dev/cxgbe/iw_cxgbe/cq.c | 1 - sys/dev/cxgbe/iw_cxgbe/qp.c | 1 - 2 files changed, 2 deletions(-) diff --git a/sys/dev/cxgbe/iw_cxgbe/cq.c b/sys/dev/cxgbe/iw_cxgbe/cq.c index 2bc5f0812ac5..e42b7861b7c8 100644 --- a/sys/dev/cxgbe/iw_cxgbe/cq.c +++ b/sys/dev/cxgbe/iw_cxgbe/cq.c @@ -123,7 +123,6 @@ create_cq(struct c4iw_rdev *rdev, struct t4_cq *cq, goto err3; } dma_unmap_addr_set(cq, mapping, cq->dma_addr); - memset(cq->queue, 0, cq->memsize); /* build fw_ri_res_wr */ wr_len = sizeof *res_wr + sizeof *res; diff --git a/sys/dev/cxgbe/iw_cxgbe/qp.c b/sys/dev/cxgbe/iw_cxgbe/qp.c index 9a5fc64c624b..8ed3a47e495e 100644 --- a/sys/dev/cxgbe/iw_cxgbe/qp.c +++ b/sys/dev/cxgbe/iw_cxgbe/qp.c @@ -196,7 +196,6 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, } wq->rq.phys_addr = vtophys(wq->rq.queue); dma_unmap_addr_set(&wq->rq, mapping, wq->rq.dma_addr); - memset(wq->rq.queue, 0, wq->rq.memsize); CTR5(KTR_IW_CXGBE, "%s QP sq base va 0x%p pa 0x%llx rq base va 0x%p pa 0x%llx",
