Remove unnecessary defer

PiperOrigin-RevId: 214073949
Change-Id: I8fab916cd77362c13dac2c9dcf2ecc1710d87a5e
This commit is contained in:
Ian Gudger
2018-09-21 18:14:38 -07:00
committed by Shentubot
parent 7ce13ebcad
commit 4094480b28
+1 -1
View File
@@ -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