]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwifiex: use sizeof(array) to print_hex_dump_bytes
authorBing Zhao <bzhao@marvell.com>
Fri, 5 Oct 2012 20:57:48 +0000 (13:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Oct 2012 19:53:16 +0000 (15:53 -0400)
commitf575f65897e84018ee7163407ca5514272e11223
tree54f6a74a57bc7c44dcdf7f388d8e91981d2ad848
parent7a66205a218c4b22ced8b3326ab925136b160b01
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>
drivers/net/wireless/mwifiex/cmdevt.c
drivers/net/wireless/mwifiex/main.h