summaryrefslogtreecommitdiffstats
path: root/drivers/net/fddi
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2013-12-30 15:41:30 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-31 16:48:33 -0500
commit7c3c299d22f15620af0db153dfe71c9bb563f331 (patch)
treeb333f0b17605b8feb8c196afba820a18e4480f31 /drivers/net/fddi
parentd9f394fe56eacde32c32fe3039214bdd677b792c (diff)
downloadtalos-op-linux-7c3c299d22f15620af0db153dfe71c9bb563f331.tar.gz
talos-op-linux-7c3c299d22f15620af0db153dfe71c9bb563f331.zip
net: fddi: slight optimization of addr compare
Use possibly more efficient ether_addr_equal to instead of memcmp. Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi')
-rw-r--r--drivers/net/fddi/skfp/fplustm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fddi/skfp/fplustm.c b/drivers/net/fddi/skfp/fplustm.c
index d918d8a42667..7d3779ae7377 100644
--- a/drivers/net/fddi/skfp/fplustm.c
+++ b/drivers/net/fddi/skfp/fplustm.c
@@ -23,6 +23,7 @@
#include "h/smc.h"
#include "h/supern_2.h"
#include <linux/bitrev.h>
+#include <linux/etherdevice.h>
#ifndef lint
static const char ID_sccs[] = "@(#)fplustm.c 1.32 99/02/23 (C) SK " ;
@@ -1082,7 +1083,7 @@ static struct s_fpmc* mac_get_mc_table(struct s_smc *smc,
slot = tb ;
continue ;
}
- if (memcmp((char *)&tb->a,(char *)own,6))
+ if (!ether_addr_equal((char *)&tb->a, (char *)own))
continue ;
return tb;
}
OpenPOWER on IntegriCloud