Skip to content
Commit 704509b8 authored by Sven Eckelmann's avatar Sven Eckelmann
Browse files

batman-adv: Calculate sizeof using variable insead of types



Documentation/CodingStyle recommends to use the form

	p = kmalloc(sizeof(*p), ...);

to calculate the size of a struct and not the version where the struct
name is spelled out to prevent bugs when the type of p changes. This
also seems appropriate for manipulation of buffers when they are
directly associated with p.

Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
parent 958ca598
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment