Skip to content

Commit

Permalink
Remove unnecessary defer
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 214073949
Change-Id: I8fab916cd77362c13dac2c9dcf2ecc1710d87a5e
  • Loading branch information
iangudger authored and shentubot committed Sep 22, 2018
1 parent 7ce13eb commit 4094480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tcpip/transport/udp/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4094480

Please sign in to comment.