diff options
author | David S. Miller <davem@davemloft.net> | 2011-11-27 00:41:29 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-27 00:41:29 +0400 |
commit | b4c0e72e80e2e04b462ea05cc5a001807d7feed6 (patch) | |
tree | e0533e1e18ab68729063f7419ed056820dea443f /drivers/net/wireless/iwmc3200wifi/eeprom.h | |
parent | f47398409c140a48dd40faf75a18f7c93504a22e (diff) | |
download | linux-b4c0e72e80e2e04b462ea05cc5a001807d7feed6.tar.xz |
ray_cs: Fix array bounds warnings.
rx_msg is defined to have a 1 entry array at the end, so gcc warns:
drivers/net/wireless/ray_cs.c: In function ‘rx_authenticate’:
drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2436:3: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2439:15: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2452:16: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2453:18: warning: array subscript is above array bounds [-Warray-bounds]
drivers/net/wireless/ray_cs.c:2453:32: warning: array subscript is above array bounds [-Warray-bounds]
Use a zero length array and rename to "ray_rx_msg" to make sure we hit all
of the necessary cases.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/eeprom.h')
0 files changed, 0 insertions, 0 deletions