mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev
Calling ether_setup is redundant since alloc_etherdev calls it. Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									2c804d0f8f
								
							
						
					
					
						commit
						3c87dcbfb3
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1012,7 +1012,6 @@ static int temac_of_probe(struct platform_device *op)
 | 
			
		|||
	if (!ndev)
 | 
			
		||||
		return -ENOMEM;
 | 
			
		||||
 | 
			
		||||
	ether_setup(ndev);
 | 
			
		||||
	platform_set_drvdata(op, ndev);
 | 
			
		||||
	SET_NETDEV_DEV(ndev, &op->dev);
 | 
			
		||||
	ndev->flags &= ~IFF_MULTICAST;  /* clear multicast */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue