Skip to content

Commit

Permalink
tweak code
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex committed Oct 12, 2022
1 parent 35e9bc0 commit 9155e48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,12 @@ type VirtioSocketDevice struct {
}

func newVirtioSocketDevice(ptr, dispatchQueue unsafe.Pointer) *VirtioSocketDevice {
socketDevice := &VirtioSocketDevice{
return &VirtioSocketDevice{
dispatchQueue: dispatchQueue,
pointer: pointer{
ptr: ptr,
},
}

return socketDevice
}

// SetSocketListenerForPort configures an object to monitor the specified port for new connections.
Expand Down

0 comments on commit 9155e48

Please sign in to comment.