drivers: macintosh: rack-meter: fix bogus memsets
commit4f7bef7a9f69b1c6fe44b9f249b49056288475a4
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 10 Apr 2016 19:53:48 +0000 (10 22:53 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 12 Apr 2016 11:05:20 +0000 (12 21:05 +1000)
tree0789ac0d2dc087608f6e8f7b986f4087e08bc1cb
parentc796d1d97c3035cf54d4d5a9e75abd094db80e76
drivers: macintosh: rack-meter: fix bogus memsets

Fix bogus memsets pointed out by sparse:

linux-v4.3/drivers/macintosh/rack-meter.c:157:15: warning: memset with byte count of 0
linux-v4.3/drivers/macintosh/rack-meter.c:158:15: warning: memset with byte count of 0

Probably "&" is mistyped "*"; use ARRAY_SIZE to make it more safe.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/rack-meter.c