mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	core: remove pointless conditional before kfree()
Remove pointless conditional before kfree(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									bb1fee86fd
								
							
						
					
					
						commit
						c9caceca25
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -261,8 +261,7 @@ static int ethtool_get_rxnfc(struct net_device *dev, void __user *useraddr)
 | 
			
		|||
	ret = 0;
 | 
			
		||||
 | 
			
		||||
err_out:
 | 
			
		||||
	if (rule_buf)
 | 
			
		||||
		kfree(rule_buf);
 | 
			
		||||
	kfree(rule_buf);
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue