oce: Remove unused variables.
This commit is contained in:
parent
395975eaed
commit
19c099a866
@ -1868,7 +1868,7 @@ int
|
|||||||
oce_alloc_rx_bufs(struct oce_rq *rq, int count)
|
oce_alloc_rx_bufs(struct oce_rq *rq, int count)
|
||||||
{
|
{
|
||||||
POCE_SOFTC sc = (POCE_SOFTC) rq->parent;
|
POCE_SOFTC sc = (POCE_SOFTC) rq->parent;
|
||||||
int i, in, rc;
|
int i, rc;
|
||||||
struct oce_packet_desc *pd;
|
struct oce_packet_desc *pd;
|
||||||
bus_dma_segment_t segs[6];
|
bus_dma_segment_t segs[6];
|
||||||
int nsegs, added = 0;
|
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));
|
bzero(&rxdb_reg, sizeof(pd_rxulp_db_t));
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
in = (rq->ring->pidx + 1) % OCE_RQ_PACKET_ARRAY_SIZE;
|
|
||||||
|
|
||||||
pd = &rq->pckts[rq->ring->pidx];
|
pd = &rq->pckts[rq->ring->pidx];
|
||||||
pd->mbuf = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, oce_rq_buf_size);
|
pd->mbuf = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, oce_rq_buf_size);
|
||||||
if (pd->mbuf == NULL) {
|
if (pd->mbuf == NULL) {
|
||||||
|
@ -373,7 +373,6 @@ oce_mbox_post(POCE_SOFTC sc, struct oce_mbx *mbx, struct oce_mbx_ctx *mbxctx)
|
|||||||
int rc = 0;
|
int rc = 0;
|
||||||
uint32_t tmo = 0;
|
uint32_t tmo = 0;
|
||||||
uint32_t cstatus = 0;
|
uint32_t cstatus = 0;
|
||||||
uint32_t xstatus = 0;
|
|
||||||
|
|
||||||
LOCK(&sc->bmbx_lock);
|
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 */
|
/* pick up the mailbox status */
|
||||||
cstatus = mb_cqe->u0.s.completion_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
|
* store the mbx context in the cqe tag section so that
|
||||||
|
@ -637,7 +637,6 @@ oce_mq_create(POCE_SOFTC sc, struct oce_eq *eq, uint32_t q_len)
|
|||||||
struct oce_cq *cq;
|
struct oce_cq *cq;
|
||||||
oce_mq_ext_ctx_t *ctx;
|
oce_mq_ext_ctx_t *ctx;
|
||||||
uint32_t num_pages;
|
uint32_t num_pages;
|
||||||
uint32_t page_size;
|
|
||||||
int version;
|
int version;
|
||||||
|
|
||||||
cq = oce_cq_create(sc, eq, CQ_LEN_256,
|
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);
|
version);
|
||||||
|
|
||||||
num_pages = oce_page_list(mq->ring, &fwcmd->params.req.pages[0]);
|
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;
|
ctx = &fwcmd->params.req.context;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user