mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
batman-adv: Remove explicit casts cast from void* for store
It is not necessary to cast a void* to the pointer type when we just store it and don't want to do pointer arithmetic before the actual assignment. Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
37a4065ec7
commit
5f718c2007
3 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,7 @@ static void bit_reset_window(unsigned long *seq_bits)
|
|||
char bit_get_packet(void *priv, unsigned long *seq_bits,
|
||||
int32_t seq_num_diff, int8_t set_mark)
|
||||
{
|
||||
struct bat_priv *bat_priv = (struct bat_priv *)priv;
|
||||
struct bat_priv *bat_priv = priv;
|
||||
|
||||
/* sequence number is slightly older. We already got a sequence number
|
||||
* higher than this one, so we just mark it. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue