locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[sfrench/cifs-2.6.git] / include / linux / if_team.h
index 30294603526f91060c6ab776c09c03ee156b9b55..d95cae09dea0873a0cb119e63f5c3d6d7c73d823 100644 (file)
@@ -247,7 +247,7 @@ static inline struct team_port *team_get_port_by_index(struct team *team,
 
 static inline int team_num_to_port_index(struct team *team, unsigned int num)
 {
-       int en_port_count = ACCESS_ONCE(team->en_port_count);
+       int en_port_count = READ_ONCE(team->en_port_count);
 
        if (unlikely(!en_port_count))
                return 0;