The following commit has been merged in the master branch: commit 4591fc4f27c748a638eb03f62901928bf304d59d Author: Sven Eckelmann sven@narfation.org Date: Wed Jun 8 22:33:53 2011 +0200
batman-adv: Remove cast after kmalloc
Casting (void *) value returned by kmalloc is useless as mentioned in Documentation/CodingStyle, Chap 14.
This regression was introduced in cea194d90b11aff7fc289149e4c7f305fad3535a
Signed-off-by: Sven Eckelmann sven@narfation.org
diff --git a/translation-table.c b/translation-table.c index d2a9f80..adecf1b 100644 --- a/translation-table.c +++ b/translation-table.c @@ -148,8 +148,7 @@ static void tt_local_event(struct bat_priv *bat_priv, uint8_t op, { struct tt_change_node *tt_change_node;
- tt_change_node = (struct tt_change_node *) - kmalloc(sizeof(*tt_change_node), GFP_ATOMIC); + tt_change_node = kmalloc(sizeof(*tt_change_node), GFP_ATOMIC);
if (!tt_change_node) return;