summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2009-06-14 11:46:57 +0200
committerStefan Richter <stefanr@s5r6.in-berlin.de>2009-06-14 14:26:29 +0200
commit156ce867a6725ea8a24b452469a6dc9f3fa6a161 (patch)
tree826d820ed5e2d2155747999ef9f0c87adcc258bc /drivers/firewire
parent5a124d382ea5c97be43c779e4f481455e0287654 (diff)
downloadlinux-156ce867a6725ea8a24b452469a6dc9f3fa6a161.tar.bz2
firewire: net: remove unused code
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/net.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index d83c54587a63..d67e8d957d21 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -628,13 +628,8 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
skb->pkt_type = PACKET_MULTICAST;
#endif
} else {
- if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) {
- u64 a1, a2;
-
- memcpy(&a1, eth->h_dest, sizeof(u64));
- memcpy(&a2, net->dev_addr, sizeof(u64));
+ if (memcmp(eth->h_dest, net->dev_addr, net->addr_len))
skb->pkt_type = PACKET_OTHERHOST;
- }
}
if (ntohs(eth->h_proto) >= 1536) {
protocol = eth->h_proto;