diff options
author | Jiri Kosina <jkosina@suse.cz> | 2012-10-28 14:28:52 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-10-28 14:29:19 -0400 |
commit | 3bd7bf1f0fe14f591c089ae61bbfa9bd356f178a (patch) | |
tree | 0058693cc9e70b7461dae551f8a19aff2efd13ca /drivers/net/wimax | |
parent | f16f84937d769c893492160b1a8c3672e3992beb (diff) | |
parent | e657e078d3dfa9f96976db7a2b5fd7d7c9f1f1a6 (diff) |
Merge branch 'master' into for-next
Sync up with Linus' tree to be able to apply Cesar's patch
against newer version of the code.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wimax/i2400m/driver.c b/drivers/net/wimax/i2400m/driver.c index 02542613275..9c34d2fccfa 100644 --- a/drivers/net/wimax/i2400m/driver.c +++ b/drivers/net/wimax/i2400m/driver.c | |||
@@ -222,7 +222,6 @@ int i2400m_check_mac_addr(struct i2400m *i2400m) | |||
222 | struct sk_buff *skb; | 222 | struct sk_buff *skb; |
223 | const struct i2400m_tlv_detailed_device_info *ddi; | 223 | const struct i2400m_tlv_detailed_device_info *ddi; |
224 | struct net_device *net_dev = i2400m->wimax_dev.net_dev; | 224 | struct net_device *net_dev = i2400m->wimax_dev.net_dev; |
225 | const unsigned char zeromac[ETH_ALEN] = { 0 }; | ||
226 | 225 | ||
227 | d_fnstart(3, dev, "(i2400m %p)\n", i2400m); | 226 | d_fnstart(3, dev, "(i2400m %p)\n", i2400m); |
228 | skb = i2400m_get_device_info(i2400m); | 227 | skb = i2400m_get_device_info(i2400m); |
@@ -244,7 +243,7 @@ int i2400m_check_mac_addr(struct i2400m *i2400m) | |||
244 | "to that of boot mode's\n"); | 243 | "to that of boot mode's\n"); |
245 | dev_warn(dev, "device reports %pM\n", ddi->mac_address); | 244 | dev_warn(dev, "device reports %pM\n", ddi->mac_address); |
246 | dev_warn(dev, "boot mode reported %pM\n", net_dev->perm_addr); | 245 | dev_warn(dev, "boot mode reported %pM\n", net_dev->perm_addr); |
247 | if (!memcmp(zeromac, ddi->mac_address, sizeof(zeromac))) | 246 | if (is_zero_ether_addr(ddi->mac_address)) |
248 | dev_err(dev, "device reports an invalid MAC address, " | 247 | dev_err(dev, "device reports an invalid MAC address, " |
249 | "not updating\n"); | 248 | "not updating\n"); |
250 | else { | 249 | else { |