git: 19c099a86613 - main - oce: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:25 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=19c099a866136162c27b6391d7e89b127cb5a45d
commit 19c099a866136162c27b6391d7e89b127cb5a45d
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-08 00:01:27 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-08 00:01:27 +0000
oce: Remove unused variables.
---
sys/dev/oce/oce_if.c | 4 +---
sys/dev/oce/oce_mbox.c | 2 --
sys/dev/oce/oce_queue.c | 2 --
3 files changed, 1 insertion(+), 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;