]> git.baikalelectronics.ru Git - kernel.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)
commitb52403b931965878b4154ef7f2a30a676e4166e5
tree54f6a74a57bc7c44dcdf7f388d8e91981d2ad848
parent2265abb8dcaff283c4dbb2a015f67331608ce2a1
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