diff options
Diffstat (limited to 'net/batman-adv/bat_iv_ogm.c')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index 9f3925a85aab..7d02ebd11a7f 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c | |||
@@ -123,7 +123,7 @@ batadv_iv_ogm_emit_send_time(const struct batadv_priv *bat_priv) | |||
123 | unsigned int msecs; | 123 | unsigned int msecs; |
124 | 124 | ||
125 | msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; | 125 | msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; |
126 | msecs += (random32() % 2 * BATADV_JITTER); | 126 | msecs += random32() % (2 * BATADV_JITTER); |
127 | 127 | ||
128 | return jiffies + msecs_to_jiffies(msecs); | 128 | return jiffies + msecs_to_jiffies(msecs); |
129 | } | 129 | } |