Skip to content

Commit

Permalink
atomic: remove useless ATOMIC_INIT() macro
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Jul 19, 2022
1 parent af47cd8 commit d2311a9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/arch/x86/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ typedef struct {
int64_t counter;
} atomic64_t;

#define ATOMIC_INIT(i) \
{ (i) }

#define atomic_set(v, i) (ACCESS_ONCE((v)->counter) = (i))
#define atomic_read(v) (ACCESS_ONCE((v)->counter))

Expand Down

0 comments on commit d2311a9

Please sign in to comment.