Skip to content

Commit b36490b

Browse files
Koichiro Denjonmason
authored andcommitted
NTB: ntb_transport: Remove unused 'retries' field from ntb_queue_entry
Drop the unused field 'retries' from struct ntb_queue_entry for simplicity's sake. Signed-off-by: Koichiro Den <den@valinux.co.jp> Signed-off-by: Jon Mason <jdmason@kudzu.us>
1 parent 05f7e89 commit b36490b

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

drivers/ntb/ntb_transport.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ struct ntb_queue_entry {
113113
void *buf;
114114
unsigned int len;
115115
unsigned int flags;
116-
int retries;
117116
int errors;
118117
unsigned int tx_index;
119118
unsigned int rx_index;
@@ -1631,9 +1630,7 @@ static void ntb_async_rx(struct ntb_queue_entry *entry, void *offset)
16311630
if (res < 0)
16321631
goto err;
16331632

1634-
if (!entry->retries)
1635-
qp->rx_async++;
1636-
1633+
qp->rx_async++;
16371634
return;
16381635

16391636
err:
@@ -1911,9 +1908,7 @@ static void ntb_async_tx(struct ntb_transport_qp *qp,
19111908
if (res < 0)
19121909
goto err;
19131910

1914-
if (!entry->retries)
1915-
qp->tx_async++;
1916-
1911+
qp->tx_async++;
19171912
return;
19181913

19191914
err:
@@ -2274,7 +2269,6 @@ int ntb_transport_rx_enqueue(struct ntb_transport_qp *qp, void *cb, void *data,
22742269
entry->buf = data;
22752270
entry->len = len;
22762271
entry->flags = 0;
2277-
entry->retries = 0;
22782272
entry->errors = 0;
22792273
entry->rx_index = 0;
22802274

@@ -2324,7 +2318,6 @@ int ntb_transport_tx_enqueue(struct ntb_transport_qp *qp, void *cb, void *data,
23242318
entry->len = len;
23252319
entry->flags = 0;
23262320
entry->errors = 0;
2327-
entry->retries = 0;
23282321
entry->tx_index = 0;
23292322

23302323
rc = ntb_process_tx(qp, entry);

0 commit comments

Comments
 (0)