]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: convert bat_priv->tt_crc from atomic_t to uint16_t
authorAntonio Quartulli <ordex@autistici.org>
Sat, 14 Apr 2012 11:15:26 +0000 (13:15 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 18 Jun 2012 16:00:58 +0000 (18:00 +0200)
commit46cfa781fc4cf71ef812999083d0fc2a99883a40
tree4753388e3a5e44b45481d27485a09c8e79ddcd1b
parent8926a4b3ea969d27ddc16d110c4ca3d538d00c20
batman-adv: convert bat_priv->tt_crc from atomic_t to uint16_t

In the code we neever need to atomically check and set the bat_priv->tt_crc
field value. It is simply set and read once in different pieces of the code.
Therefore this field can be safely be converted from atomic_t to uint16_t.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/send.c
net/batman-adv/types.h