ath5k: don't change mac in eeprom_read_mac on error
authorJiri Slaby <jirislaby@gmail.com>
Sat, 7 Mar 2009 09:26:42 +0000 (10:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Mar 2009 22:09:36 +0000 (18:09 -0400)
commit8d6c39efed5987d3c1ade96e93753125a099f512
tree588f33c4f9e0c64aca810718b8b2c60a929ba1bb
parent2c91108c55477334f6854a587ec6e9111d8f1407
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>
drivers/net/wireless/ath5k/eeprom.c