p54: memset(0) whole array
authorJiri Slaby <jslaby@suse.cz>
Fri, 14 Oct 2016 09:23:09 +0000 (11:23 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Nov 2016 06:45:32 +0000 (08:45 +0200)
commit6f17581788206444cbbcdbc107498f85e9765e3d
tree3e9f2dc5113d10748cddbbaebaf57261be998826
parente1c122d55f9ec5608ca98a9a846fd39cdf3ed7d7
p54: memset(0) whole array

gcc 7 complains:
drivers/net/wireless/intersil/p54/fwio.c: In function 'p54_scan':
drivers/net/wireless/intersil/p54/fwio.c:491:4: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]

Fix that by passing the correct size to memset.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Christian Lamparter <chunkeey@googlemail.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/p54/fwio.c