batman-adv: fix random jitter calculation
batman-adv: fix random jitter calculation

batadv_iv_ogm_emit_send_time() attempts to calculates a random integer
in the range of 'orig_interval +- BATADV_JITTER' by the below lines.

        msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER;
        msecs += (random32() % 2 * BATADV_JITTER);

But it actually gets 'orig_interval' or 'orig_interval - BATADV_JITTER'
because '%' and '*' have same precedence and associativity is
left-to-right.

This adds the parentheses at the appropriate position so that it matches
original intension.

Signed-off-by: Akinobu Mita <3807cf899f217da549814bf6c330d3b6e6819ccf@gmail.com>
Acked-by: Antonio Quartulli <ed91ce0fd2670d4a98b12fc9ec6b7a497c7ed53f@autistici.org>
Cc: Marek Lindner <104240d543ffdbcddd3f116d866dc6166bffcd7a@yahoo.de>
Cc: Simon Wunderlich <ee8cb2fe367357431f9fb32cc761adf92c257cce@hrz.tu-chemnitz.de>
Cc: Antonio Quartulli <ed91ce0fd2670d4a98b12fc9ec6b7a497c7ed53f@autistici.org>
Cc: 6c96f29dd191cfae8bed33df07e1ae5bbe9a5957@lists.open-mesh.org
Cc: "David S. Miller" <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
Cc: 1099b3bee480025a15c1b622ecdea77a1d6d7166@vger.kernel.org
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs