[NET]: Micro optimization in eth_header()

Signed-off-by: Denis Vlasenko <vda@ilport.com.ua>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Denis Vlasenko and committed by David S. Miller ff593c59 7fe40f73

+3 -4
+3 -4
net/ethernet/eth.c
··· 92 * Set the source hardware address. 93 */ 94 95 - if(saddr) 96 - memcpy(eth->h_source,saddr,dev->addr_len); 97 - else 98 - memcpy(eth->h_source,dev->dev_addr,dev->addr_len); 99 100 /* 101 * Anyway, the loopback-device should never use this function...
··· 92 * Set the source hardware address. 93 */ 94 95 + if(!saddr) 96 + saddr = dev->dev_addr; 97 + memcpy(eth->h_source,saddr,dev->addr_len); 98 99 /* 100 * Anyway, the loopback-device should never use this function...