[PATCH 2/2] staging/et131x: remove memset for the TCB
Devendra Naga
devendra.aaru at gmail.com
Thu Jul 12 06:09:28 UTC 2012
TCB has kcalloc' ed so no need to call memset again on it.
Signed-off-by: Devendra Naga <devendra.aaru at gmail.com>
---
drivers/staging/et131x/et131x.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index 227fca9..5010894 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -2131,8 +2131,6 @@ static void et131x_init_send(struct et131x_adapter *adapter)
tx_ring->tcb_qhead = tcb;
- memset(tcb, 0, sizeof(struct tcb) * NUM_TCB);
-
/* Go through and set up each TCB */
for (ct = 0; ct++ < NUM_TCB; tcb++)
/* Set the link pointer in HW TCB to the next TCB in the
--
1.7.9.5
More information about the devel
mailing list