]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/et131x/et1310_tx.c
Staging: Drop memory allocation cast
[net-next-2.6.git] / drivers / staging / et131x / et1310_tx.c
index b6ff20f47de490eb238d7eb4941f8f94231fbd87..0f3473d758e49f784f2ee8cc9b59001d03171f05 100644 (file)
@@ -112,7 +112,7 @@ int et131x_tx_dma_memory_alloc(struct et131x_adapter *adapter)
        struct tx_ring *tx_ring = &adapter->tx_ring;
 
        /* Allocate memory for the TCB's (Transmit Control Block) */
-       adapter->tx_ring.tcb_ring = (struct tcb *)
+       adapter->tx_ring.tcb_ring =
                kcalloc(NUM_TCB, sizeof(struct tcb), GFP_ATOMIC | GFP_DMA);
        if (!adapter->tx_ring.tcb_ring) {
                dev_err(&adapter->pdev->dev, "Cannot alloc memory for TCBs\n");