Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff593c59 authored by Denis Vlasenko's avatar Denis Vlasenko Committed by David S. Miller
Browse files

[NET]: Micro optimization in eth_header()

parent 7fe40f73
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -92,10 +92,9 @@ int eth_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,
	 *	Set the source hardware address. 
	 */
	 
	if(saddr)
	if(!saddr)
		saddr = dev->dev_addr;
	memcpy(eth->h_source,saddr,dev->addr_len);
	else
		memcpy(eth->h_source,dev->dev_addr,dev->addr_len);

	/*
	 *	Anyway, the loopback-device should never use this function...