mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	sctp: remove an if() that is always true
As noticed by Xin Long, the if() here is always true as PMTU can never be 0. Reported-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									800e00c127
								
							
						
					
					
						commit
						c88da20f95
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1397,10 +1397,8 @@ void sctp_assoc_sync_pmtu(struct sctp_association *asoc)
 | 
			
		|||
			pmtu = t->pathmtu;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (pmtu) {
 | 
			
		||||
	asoc->pathmtu = pmtu;
 | 
			
		||||
	asoc->frag_point = sctp_frag_point(asoc, pmtu);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	pr_debug("%s: asoc:%p, pmtu:%d, frag_point:%d\n", __func__, asoc,
 | 
			
		||||
		 asoc->pathmtu, asoc->frag_point);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue