Skip to content

Commit

Permalink
fix: remove init state
Browse files Browse the repository at this point in the history
  • Loading branch information
yudhasubki committed Dec 14, 2023
1 parent efb8c9f commit 4202704
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/cas/cas.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ type SpinLock struct {
const free = uint32(0)

func New() *SpinLock {
var poke *uint32
poke = new(uint32)
*poke = 0

return &SpinLock{
state: poke,
state: new(uint32),
}
}

Expand Down

0 comments on commit 4202704

Please sign in to comment.