From 4094480b28e7367346840938f83db65f20e7ddaa Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Fri, 21 Sep 2018 18:13:38 -0700 Subject: Remove unnecessary defer PiperOrigin-RevId: 214073949 Change-Id: I8fab916cd77362c13dac2c9dcf2ecc1710d87a5e --- pkg/tcpip/transport/udp/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/tcpip/transport/udp') diff --git a/pkg/tcpip/transport/udp/endpoint.go b/pkg/tcpip/transport/udp/endpoint.go index 4de2aa3e3..f2dd98f35 100644 --- a/pkg/tcpip/transport/udp/endpoint.go +++ b/pkg/tcpip/transport/udp/endpoint.go @@ -400,8 +400,8 @@ func (e *endpoint) SetSockOpt(opt interface{}) *tcpip.Error { case tcpip.MulticastTTLOption: e.mu.Lock() - defer e.mu.Unlock() e.multicastTTL = uint8(v) + e.mu.Unlock() case tcpip.AddMembershipOption: nicID := v.NIC -- cgit v1.2.3