ip: Use inline function dst_metric() instead of direct access to dst->metric[]
authorSatoru SATOH <satoru.satoh@gmail.com>
Mon, 5 May 2008 05:14:42 +0000 (22:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2008 05:14:42 +0000 (22:14 -0700)
commit5ffc02a158997b1eb91ade8d02bcf521ff79a218
tree80f9082f9a35c974236b20053ae4946523311ea3
parent0bbeafd0118fc3ae54990064760c889d41dc21d6
ip: Use inline function dst_metric() instead of direct access to dst->metric[]

There are functions to refer to the value of dst->metric[THE_METRIC-1]
directly without use of a inline function "dst_metric" defined in
net/dst.h.

The following patch changes them to use the inline function
consistently.

Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_route.c
net/ipv4/route.c
net/ipv4/tcp_input.c
net/ipv6/route.c