This memlist code is not used Signed-off-by: Brett Rudley <brudley@xxxxxxxxxxxx> --- drivers/staging/brcm80211/util/linux_osl.c | 27 +-------------------------- 1 files changed, 1 insertions(+), 26 deletions(-) diff --git a/drivers/staging/brcm80211/util/linux_osl.c b/drivers/staging/brcm80211/util/linux_osl.c index 6055790..35ede41 100644 --- a/drivers/staging/brcm80211/util/linux_osl.c +++ b/drivers/staging/brcm80211/util/linux_osl.c @@ -31,7 +31,6 @@ #define PCI_CFG_RETRY 10 #define OS_HANDLE_MAGIC 0x1234abcd /* Magic # to recognise osh */ -#define BCM_MEM_FILENAME_LEN 24 /* Mem. filename length */ #if defined(BRCM_FULLMAC) && defined(DHD_USE_STATIC_BUF) #define MAX_STATIC_BUF_NUM 16 @@ -53,14 +52,7 @@ typedef struct bcm_static_pkt { unsigned char pkt_use[MAX_STATIC_PKT_NUM * 2]; } bcm_static_pkt_t; static bcm_static_pkt_t *bcm_static_skb = 0; -#endif /* DHD_USE_STATIC_BUF */ -typedef struct bcm_mem_link { - struct bcm_mem_link *prev; - struct bcm_mem_link *next; - uint size; - int line; - char file[BCM_MEM_FILENAME_LEN]; -} bcm_mem_link_t; +#endif /* BRCM_FULLMAC && DHD_USE_STATIC_BUF */ struct osl_info { osl_pubinfo_t pub; @@ -69,7 +61,6 @@ struct osl_info { uint malloced; uint failed; uint bustype; - bcm_mem_link_t *dbgmem_list; }; /* Global ASSERT type flag */ @@ -160,7 +151,6 @@ osl_t *osl_attach(void *pdev, uint bustype, bool pkttag) osh->magic = OS_HANDLE_MAGIC; osh->malloced = 0; osh->failed = 0; - osh->dbgmem_list = NULL; osh->pdev = pdev; osh->pub.pkttag = pkttag; osh->bustype = bustype; @@ -423,21 +413,6 @@ uint osl_pci_slot(osl_t *osh) return PCI_SLOT(((struct pci_dev *)osh->pdev)->devfn); } -static void -osl_pcmcia_attr(osl_t *osh, uint offset, char *buf, int size, bool write) -{ -} - -void osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size) -{ - osl_pcmcia_attr(osh, offset, (char *)buf, size, FALSE); -} - -void osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size) -{ - osl_pcmcia_attr(osh, offset, (char *)buf, size, TRUE); -} - void *osl_malloc(osl_t *osh, uint size) { void *addr; -- 1.6.3.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel