diff options
author | Aaro Koskinen <[email protected]> | 2018-03-16 22:17:28 +0200 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2018-03-31 00:10:35 +1100 |
commit | e283655b5abe26462d53d5196f186c5e8863af3b (patch) | |
tree | b3addd95155e9b004da070580fc984dd341331c7 /scripts/gdb/linux/utils.py | |
parent | 0bfdf598900fd62869659f360d3387ed80eb71cf (diff) |
drivers: macintosh: rack-meter: really fix bogus memsets
We should zero an array using sizeof instead of number of elements.
Fixes the following compiler (GCC 7.3.0) warnings:
drivers/macintosh/rack-meter.c: In function 'rackmeter_do_pause':
drivers/macintosh/rack-meter.c:157:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
drivers/macintosh/rack-meter.c:158:2: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
Fixes: 4f7bef7a9f69 ("drivers: macintosh: rack-meter: fix bogus memsets")
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Aaro Koskinen <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions