summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/seeq
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2013-12-30 08:41:21 +0100
committerDavid S. Miller <davem@davemloft.net>2013-12-31 22:48:32 +0100
commit9116d7b06d32946d345b7f0423a5b0b6a9b040f7 (patch)
treed01ce6a956624ad050a4908b970d3818410f4c98 /drivers/net/ethernet/seeq
parentnet: renesas: slight optimization of addr compare (diff)
downloadlinux-9116d7b06d32946d345b7f0423a5b0b6a9b040f7.tar.xz
linux-9116d7b06d32946d345b7f0423a5b0b6a9b040f7.zip
net: seeq: 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/ethernet/seeq')
-rw-r--r--drivers/net/ethernet/seeq/sgiseeq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c
index c76571886011..ced5b13d937f 100644
--- a/drivers/net/ethernet/seeq/sgiseeq.c
+++ b/drivers/net/ethernet/seeq/sgiseeq.c
@@ -356,7 +356,7 @@ static inline void sgiseeq_rx(struct net_device *dev, struct sgiseeq_private *sp
if (pkt_status & SEEQ_RSTAT_FIG) {
/* Packet is OK. */
/* We don't want to receive our own packets */
- if (memcmp(rd->skb->data + 6, dev->dev_addr, ETH_ALEN)) {
+ if (!ether_addr_equal(rd->skb->data + 6, dev->dev_addr)) {
if (len > rx_copybreak) {
skb = rd->skb;
newskb = netdev_alloc_skb(dev, PKT_BUF_SZ);