summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Rudley <brudley@broadcom.com>2010-11-30 15:22:14 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-01 14:55:51 -0800
commitf5343314f62ba392ec069210ae342bc32c4ce367 (patch)
treecea862ffd2d35eea080935ace3a976239dd50662
parent954c7a6c960bcedf28e8b5dcdcd6fe68d8c6c110 (diff)
staging: brcm80211: Remove unused PKTFREESETCB
Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/brcm80211/include/linux_osl.h6
-rw-r--r--drivers/staging/brcm80211/include/osl.h6
-rw-r--r--drivers/staging/brcm80211/util/linux_osl.c3
3 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/brcm80211/include/linux_osl.h b/drivers/staging/brcm80211/include/linux_osl.h
index 18bc1f0d2d84..0e2e53e623cf 100644
--- a/drivers/staging/brcm80211/include/linux_osl.h
+++ b/drivers/staging/brcm80211/include/linux_osl.h
@@ -47,12 +47,6 @@ extern void osl_assert(char *exp, char *file, int line);
extern uint osl_pci_bus(struct osl_info *osh);
extern uint osl_pci_slot(struct osl_info *osh);
-#define PKTFREESETCB(osh, _tx_fn, _tx_ctx) \
- do { \
- ((struct osl_pubinfo *)osh)->tx_fn = _tx_fn; \
- ((struct osl_pubinfo *)osh)->tx_ctx = _tx_ctx; \
- } while (0)
-
#define BUS_SWAP32(v) (v)
extern void *osl_dma_alloc_consistent(struct osl_info *osh, uint size,
diff --git a/drivers/staging/brcm80211/include/osl.h b/drivers/staging/brcm80211/include/osl.h
index 4d0ce9705500..186bb77b7623 100644
--- a/drivers/staging/brcm80211/include/osl.h
+++ b/drivers/staging/brcm80211/include/osl.h
@@ -17,15 +17,9 @@
#ifndef _osl_h_
#define _osl_h_
-/* Drivers use PKTFREESETCB to register a callback function
- when a packet is freed by OSL */
-typedef void (*pktfree_cb_fn_t) (void *ctx, void *pkt, unsigned int status);
-
struct osl_pubinfo {
uint pktalloced; /* Number of allocated packet buffers */
bool mmbus; /* Bus supports memory-mapped registers */
- pktfree_cb_fn_t tx_fn; /* Callback function for PKTFREE */
- void *tx_ctx; /* Context to the callback function */
};
/* osl handle type forward declaration */
diff --git a/drivers/staging/brcm80211/util/linux_osl.c b/drivers/staging/brcm80211/util/linux_osl.c
index a0f9dcb0b786..260995e0e90e 100644
--- a/drivers/staging/brcm80211/util/linux_osl.c
+++ b/drivers/staging/brcm80211/util/linux_osl.c
@@ -103,9 +103,6 @@ void BCMFASTPATH osl_pktfree(struct osl_info *osh, void *p, bool send)
skb = (struct sk_buff *)p;
ASSERT(skb);
- if (send && osh->pub.tx_fn)
- osh->pub.tx_fn(osh->pub.tx_ctx, p, 0);
-
/* perversion: we use skb->next to chain multi-skb packets */
while (skb) {
nskb = skb->next;