mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-10 07:29:40 +00:00
rtl8188eu: Remove internal leak checking - use kmemleak
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
96adb823b9
commit
3d0ee1321a
5 changed files with 117 additions and 1471 deletions
|
@ -1028,26 +1028,6 @@ int proc_get_all_sta_info(char *page, char **start,
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DBG_MEMORY_LEAK
|
|
||||||
#include <asm/atomic.h>
|
|
||||||
extern atomic_t _malloc_cnt;;
|
|
||||||
extern atomic_t _malloc_size;;
|
|
||||||
|
|
||||||
int proc_get_malloc_cnt(char *page, char **start,
|
|
||||||
off_t offset, int count,
|
|
||||||
int *eof, void *data)
|
|
||||||
{
|
|
||||||
|
|
||||||
int len = 0;
|
|
||||||
|
|
||||||
len += snprintf(page + len, count - len, "_malloc_cnt=%d\n", atomic_read(&_malloc_cnt));
|
|
||||||
len += snprintf(page + len, count - len, "_malloc_size=%d\n", atomic_read(&_malloc_size));
|
|
||||||
|
|
||||||
*eof = 1;
|
|
||||||
return len;
|
|
||||||
}
|
|
||||||
#endif /* DBG_MEMORY_LEAK */
|
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
#ifdef CONFIG_FIND_BEST_CHANNEL
|
||||||
int proc_get_best_channel(char *page, char **start,
|
int proc_get_best_channel(char *page, char **start,
|
||||||
off_t offset, int count,
|
off_t offset, int count,
|
||||||
|
|
|
@ -391,8 +391,6 @@
|
||||||
|
|
||||||
//#define DBG_HAL_INIT_PROFILING
|
//#define DBG_HAL_INIT_PROFILING
|
||||||
|
|
||||||
//#define DBG_MEMORY_LEAK
|
|
||||||
|
|
||||||
//TX use 1 urb
|
//TX use 1 urb
|
||||||
//#define CONFIG_SINGLE_XMIT_BUF
|
//#define CONFIG_SINGLE_XMIT_BUF
|
||||||
//RX use 1 urb
|
//RX use 1 urb
|
||||||
|
|
|
@ -323,12 +323,6 @@ extern u32 GlobalDebugLevel;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DBG_MEMORY_LEAK
|
|
||||||
int proc_get_malloc_cnt(char *page, char **start,
|
|
||||||
off_t offset, int count,
|
|
||||||
int *eof, void *data);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_FIND_BEST_CHANNEL
|
#ifdef CONFIG_FIND_BEST_CHANNEL
|
||||||
int proc_get_best_channel(char *page, char **start,
|
int proc_get_best_channel(char *page, char **start,
|
||||||
off_t offset, int count,
|
off_t offset, int count,
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue