mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ng_pktbuf: Use atomic_dec instead of atomic_set_return
This commit is contained in:
parent
748499b737
commit
6821350835
@ -134,7 +134,7 @@ ng_pktsnip_t *ng_pktbuf_start_write(ng_pktsnip_t *pkt)
|
||||
|
||||
res = _pktbuf_duplicate(pkt);
|
||||
|
||||
atomic_set_return(&pkt->users, pkt->users - 1);
|
||||
atomic_dec(&pkt->users);
|
||||
|
||||
mutex_unlock(&_pktbuf_mutex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user