summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2011-11-23 02:14:15 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-26 14:29:51 -0500
commitb8400f3718a11c9b0ca400705cddf94f3132c1c3 (patch)
tree88bb6045e4ebcb8cfc4b9f85f4818952428d1885 /include/net
parent618f9bc74a039da76fa027ac2600c5b785b964c5 (diff)
downloadblackbird-op-linux-b8400f3718a11c9b0ca400705cddf94f3132c1c3.tar.gz
blackbird-op-linux-b8400f3718a11c9b0ca400705cddf94f3132c1c3.zip
route: struct rtable can be const in rt_is_input_route and rt_is_output_route
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/route.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h
index db7b3432f07c..91855d185b53 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -71,12 +71,12 @@ struct rtable {
struct fib_info *fi; /* for client ref to shared metrics */
};
-static inline bool rt_is_input_route(struct rtable *rt)
+static inline bool rt_is_input_route(const struct rtable *rt)
{
return rt->rt_route_iif != 0;
}
-static inline bool rt_is_output_route(struct rtable *rt)
+static inline bool rt_is_output_route(const struct rtable *rt)
{
return rt->rt_route_iif == 0;
}
OpenPOWER on IntegriCloud