Skip to content

Commit 4094480

Browse files
iangudgershentubot
authored andcommitted
Remove unnecessary defer
PiperOrigin-RevId: 214073949 Change-Id: I8fab916cd77362c13dac2c9dcf2ecc1710d87a5e
1 parent 7ce13eb commit 4094480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/tcpip/transport/udp/endpoint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ func (e *endpoint) SetSockOpt(opt interface{}) *tcpip.Error {
400400

401401
case tcpip.MulticastTTLOption:
402402
e.mu.Lock()
403-
defer e.mu.Unlock()
404403
e.multicastTTL = uint8(v)
404+
e.mu.Unlock()
405405

406406
case tcpip.AddMembershipOption:
407407
nicID := v.NIC

0 commit comments

Comments
 (0)