summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8192e/rtllib_tx.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2011-07-12 22:16:06 -0500
committerLarry Finger <Larry.Finger@lwfinger.net>2011-08-23 20:23:59 -0500
commita97dc3afc0d1f33fb8fff8e57f3644b3d09bacd0 (patch)
tree4004208c044ac30a5e08f1e90820c713191bc306 /drivers/staging/rtl8192e/rtllib_tx.c
parentd064307a1a67c564caf69e1555d1aa62662217fb (diff)
staging: rtl8192e: Remove dead code associated with USB_USE_ALIGNMENT
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_tx.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_tx.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e/rtllib_tx.c
index 3aa6756f07af..f93530e53afa 100644
--- a/drivers/staging/rtl8192e/rtllib_tx.c
+++ b/drivers/staging/rtl8192e/rtllib_tx.c
@@ -243,10 +243,6 @@ void rtllib_txb_free(struct rtllib_txb *txb) {
struct rtllib_txb *rtllib_alloc_txb(int nr_frags, int txb_size,
int gfp_mask)
{
-#ifdef USB_USE_ALIGNMENT
- u32 Tmpaddr=0;
- int alignment=0;
-#endif
struct rtllib_txb *txb;
int i;
txb = kmalloc(
@@ -260,20 +256,11 @@ struct rtllib_txb *rtllib_alloc_txb(int nr_frags, int txb_size,
txb->frag_size = txb_size;
for (i = 0; i < nr_frags; i++) {
-#ifdef USB_USE_ALIGNMENT
- txb->fragments[i] = dev_alloc_skb(txb_size+USB_512B_ALIGNMENT_SIZE);
-#else
txb->fragments[i] = dev_alloc_skb(txb_size);
-#endif
if (unlikely(!txb->fragments[i])) {
i--;
break;
}
-#ifdef USB_USE_ALIGNMENT
- Tmpaddr = (u32)(txb->fragments[i]->data);
- alignment = Tmpaddr & 0x1ff;
- skb_reserve(txb->fragments[i],(USB_512B_ALIGNMENT_SIZE - alignment));
-#endif
memset(txb->fragments[i]->cb, 0, sizeof(txb->fragments[i]->cb));
}
if (unlikely(i != nr_frags)) {