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:
gVisor bot
2024-09-12 07:08:02 -07:00
parent 1e97c039bf
commit 9bdd97ce47
+1 -1
View File
@@ -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()