mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove redundant check
This check has no effect as *tcpip.TCPSynRetriesOption is of type `uint8` and cannot be > 255. PiperOrigin-RevId: 673830041
This commit is contained in:
@@ -364,7 +364,7 @@ func (p *protocol) SetOption(option tcpip.SettableTransportProtocolOption) tcpip
|
||||
return nil
|
||||
|
||||
case *tcpip.TCPSynRetriesOption:
|
||||
if *v < 1 || *v > 255 {
|
||||
if *v < 1 {
|
||||
return &tcpip.ErrInvalidOptionValue{}
|
||||
}
|
||||
p.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user