Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8400f37 authored by Steffen Klassert's avatar Steffen Klassert Committed by David S. Miller
Browse files

route: struct rtable can be const in rt_is_input_route and rt_is_output_route

parent 618f9bc7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}