diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-15 11:21:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 15:05:19 -0400 |
commit | e91d83346ad9b30f44469c92b982206dcd7dcaf0 (patch) | |
tree | 31afd98edac6bf9b9b8fd8685ef2d7c89f044078 /drivers/net/wireless/rt2x00 | |
parent | 04dc882d601ec6fae5dfcb47c43f7af343e9a135 (diff) |
wireless: remove print_mac uses
Use %pM instead, and also remove stray variables
declared with DECLARE_MAC_BUF.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 66e001c392b0..f35b3d6649c8 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -2220,10 +2220,8 @@ static int rt2800usb_validate_eeprom(struct rt2x00_dev *rt2x00dev) | |||
2220 | */ | 2220 | */ |
2221 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); | 2221 | mac = rt2x00_eeprom_addr(rt2x00dev, EEPROM_MAC_ADDR_0); |
2222 | if (!is_valid_ether_addr(mac)) { | 2222 | if (!is_valid_ether_addr(mac)) { |
2223 | DECLARE_MAC_BUF(macbuf); | ||
2224 | |||
2225 | random_ether_addr(mac); | 2223 | random_ether_addr(mac); |
2226 | EEPROM(rt2x00dev, "MAC: %s\n", print_mac(macbuf, mac)); | 2224 | EEPROM(rt2x00dev, "MAC: %pM\n", mac); |
2227 | } | 2225 | } |
2228 | 2226 | ||
2229 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); | 2227 | rt2x00_eeprom_read(rt2x00dev, EEPROM_ANTENNA, &word); |