From: Steffen Klassert Date: Wed, 23 Nov 2011 02:14:15 +0000 (+0000) Subject: route: struct rtable can be const in rt_is_input_route and rt_is_output_route X-Git-Tag: MMI-PSA29.97-13-9~17939^2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8400f3718a11c9b0ca400705cddf94f3132c1c3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git route: struct rtable can be const in rt_is_input_route and rt_is_output_route Signed-off-by: Steffen Klassert Signed-off-by: David S. Miller --- 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; }