aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/oce
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
commit19c099a866136162c27b6391d7e89b127cb5a45d (patch)
tree31ab39c831ebb3579fc3b3f5911c2d99c9dabd98 /sys/dev/oce
parent395975eaed9eef3efd6cae79c443638183202f23 (diff)
Diffstat (limited to 'sys/dev/oce')
-rw-r--r--sys/dev/oce/oce_if.c4
-rw-r--r--sys/dev/oce/oce_mbox.c2
-rw-r--r--sys/dev/oce/oce_queue.c2
3 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/oce/oce_if.c b/sys/dev/oce/oce_if.c
index 1127565282c1..ff784918411d 100644
--- a/sys/dev/oce/oce_if.c
+++ b/sys/dev/oce/oce_if.c
@@ -1868,7 +1868,7 @@ int
oce_alloc_rx_bufs(struct oce_rq *rq, int count)
{
POCE_SOFTC sc = (POCE_SOFTC) rq->parent;
- int i, in, rc;
+ int i, rc;
struct oce_packet_desc *pd;
bus_dma_segment_t segs[6];
int nsegs, added = 0;
@@ -1879,8 +1879,6 @@ oce_alloc_rx_bufs(struct oce_rq *rq, int count)
bzero(&rxdb_reg, sizeof(pd_rxulp_db_t));
for (i = 0; i < count; i++) {
- in = (rq->ring->pidx + 1) % OCE_RQ_PACKET_ARRAY_SIZE;
-
pd = &rq->pckts[rq->ring->pidx];
pd->mbuf = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, oce_rq_buf_size);
if (pd->mbuf == NULL) {
diff --git a/sys/dev/oce/oce_mbox.c b/sys/dev/oce/oce_mbox.c
index 321775c13d1e..210683be87c0 100644
--- a/sys/dev/oce/oce_mbox.c
+++ b/sys/dev/oce/oce_mbox.c
@@ -373,7 +373,6 @@ oce_mbox_post(POCE_SOFTC sc, struct oce_mbx *mbx, struct oce_mbx_ctx *mbxctx)
int rc = 0;
uint32_t tmo = 0;
uint32_t cstatus = 0;
- uint32_t xstatus = 0;
LOCK(&sc->bmbx_lock);
@@ -402,7 +401,6 @@ oce_mbox_post(POCE_SOFTC sc, struct oce_mbx *mbx, struct oce_mbx_ctx *mbxctx)
/* pick up the mailbox status */
cstatus = mb_cqe->u0.s.completion_status;
- xstatus = mb_cqe->u0.s.extended_status;
/*
* store the mbx context in the cqe tag section so that
diff --git a/sys/dev/oce/oce_queue.c b/sys/dev/oce/oce_queue.c
index da4d33065d40..b4bb608844fe 100644
--- a/sys/dev/oce/oce_queue.c
+++ b/sys/dev/oce/oce_queue.c
@@ -637,7 +637,6 @@ oce_mq_create(POCE_SOFTC sc, struct oce_eq *eq, uint32_t q_len)
struct oce_cq *cq;
oce_mq_ext_ctx_t *ctx;
uint32_t num_pages;
- uint32_t page_size;
int version;
cq = oce_cq_create(sc, eq, CQ_LEN_256,
@@ -670,7 +669,6 @@ oce_mq_create(POCE_SOFTC sc, struct oce_eq *eq, uint32_t q_len)
version);
num_pages = oce_page_list(mq->ring, &fwcmd->params.req.pages[0]);
- page_size = mq->ring->num_items * mq->ring->item_size;
ctx = &fwcmd->params.req.context;