mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	net/sched: remove redundant null check on head
head is previously null checked and so the 2nd null check on head
is redundant and therefore can be removed.
Detected by CoverityScan, CID#1399505 ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
			
			
This commit is contained in:
		
							parent
							
								
									8b485ce698
								
							
						
					
					
						commit
						985538eee0
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -203,8 +203,7 @@ static int mall_change(struct net *net, struct sk_buff *in_skb,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	*arg = (unsigned long) head;
 | 
						*arg = (unsigned long) head;
 | 
				
			||||||
	rcu_assign_pointer(tp->root, new);
 | 
						rcu_assign_pointer(tp->root, new);
 | 
				
			||||||
	if (head)
 | 
						call_rcu(&head->rcu, mall_destroy_rcu);
 | 
				
			||||||
		call_rcu(&head->rcu, mall_destroy_rcu);
 | 
					 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
err_replace_hw_filter:
 | 
					err_replace_hw_filter:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue