net: assign PDE->data before gluing PDE into /proc tree
authorDenis V. Lunev <den@openvz.org>
Fri, 2 May 2008 09:46:22 +0000 (02:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 09:46:22 +0000 (02:46 -0700)
commit5efdccbcda20d3e5fbaa85f726dcc9cfeb005577
tree7b61603bf422064b69586853093af194009bd231
parent6e79d85d9a6b7a149dd3666b079c96cfbf57fdb8
net: assign PDE->data before gluing PDE into /proc tree

Simply replace proc_create and further data assigned with proc_create_data.
Additionally, there is no need to assign NULL to PDE->data after creation,
/proc generic has already done this for us.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c
net/core/pktgen.c