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 --- translation-table.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
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;
On Wednesday, June 08, 2011 10:33:53 PM Sven Eckelmann wrote:
Casting (void *) value returned by kmalloc is useless as mentioned in Documentation/CodingStyle, Chap 14.
This regression was introduced in cea194d90b11aff7fc289149e4c7f305fad3535a
Applied in revision 4591fc4.
Thanks, Marek
b.a.t.m.a.n@lists.open-mesh.org