diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-03-07 10:26:42 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-16 18:09:36 -0400 |
commit | 8d6c39efed5987d3c1ade96e93753125a099f512 (patch) | |
tree | 588f33c4f9e0c64aca810718b8b2c60a929ba1bb /drivers/net/wireless/ath5k/led.c | |
parent | 2c91108c55477334f6854a587ec6e9111d8f1407 (diff) | |
download | lwn-8d6c39efed5987d3c1ade96e93753125a099f512.tar.gz lwn-8d6c39efed5987d3c1ade96e93753125a099f512.zip |
ath5k: don't change mac in eeprom_read_mac on error
Do not touch mac parameter passed to ath5k_eeprom_read_mac unless
we are sure we have correct address. I.e. when returning error, do
not change it.
While at it, use '= {}' compiler trick for memsetting mac_d.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/led.c')
0 files changed, 0 insertions, 0 deletions