diff options
author | Bing Zhao <bzhao@marvell.com> | 2012-10-05 13:57:48 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-19 15:53:16 -0400 |
commit | f575f65897e84018ee7163407ca5514272e11223 (patch) | |
tree | 54f6a74a57bc7c44dcdf7f388d8e91981d2ad848 /drivers/net/wireless/mwifiex/main.h | |
parent | 7a66205a218c4b22ced8b3326ab925136b160b01 (diff) | |
download | lwn-f575f65897e84018ee7163407ca5514272e11223.tar.gz lwn-f575f65897e84018ee7163407ca5514272e11223.zip |
mwifiex: use sizeof(array) to print_hex_dump_bytes
DBG_CMD_NUM is the number of commands, not the actual bytes of
data for printing.
Also remove the duplicated DBG_CMD_NUM definition.
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index c2d0ab146af5..0b747ec84c4d 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h @@ -115,8 +115,6 @@ enum { #define MWIFIEX_TYPE_DATA 0 #define MWIFIEX_TYPE_EVENT 3 -#define DBG_CMD_NUM 5 - #define MAX_BITMAP_RATES_SIZE 10 #define MAX_CHANNEL_BAND_BG 14 |