kernel_optimize_test/net/batman-adv
Sven Eckelmann 704509b8d4 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: Sven Eckelmann <sven@narfation.org>
2011-05-30 07:39:33 +02:00
..
aggregation.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
aggregation.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
bat_debugfs.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
bat_debugfs.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bat_sysfs.c batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
bat_sysfs.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
bitarray.c batman-adv: Remove explicit casts cast from void* for store 2011-05-30 07:39:32 +02:00
bitarray.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
gateway_client.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
gateway_client.h batman-adv: concentrate all curr_gw related rcu operations in select/deselect functions 2011-04-17 21:11:01 +02:00
gateway_common.c batman-adv: Only use int up and down gw representation 2011-05-30 07:39:32 +02:00
gateway_common.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
hard-interface.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
hard-interface.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
hash.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
hash.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
icmp_socket.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
icmp_socket.h batman-adv: Remove duplicate types.h inclusions 2011-02-11 23:30:29 +01:00
Kconfig net: Add batman-adv meshing protocol 2010-12-16 13:44:24 -08:00
main.c batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
main.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
Makefile batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00
originator.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
originator.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
packet.h batman-adv: Remove multiline comments from line ending 2011-05-08 16:10:42 +02:00
ring_buffer.c batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
ring_buffer.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
routing.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
routing.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
send.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
send.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
soft-interface.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
soft-interface.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
translation-table.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
translation-table.h batman-adv: Add const type qualifier for pointers 2011-05-30 07:39:31 +02:00
types.h batman-adv: Remove multiline comments from line ending 2011-05-08 16:10:42 +02:00
unicast.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
unicast.h batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
vis.c batman-adv: Calculate sizeof using variable insead of types 2011-05-30 07:39:33 +02:00
vis.h batman-adv: Update copyright years 2011-01-31 14:57:12 +01:00