From 9a8c4121e574a200f067cda6570f1d2018ab9aa1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 22 Aug 2017 10:21:07 -0600 Subject: [PATCH] Network procfs: procfs/net_procfs_route.c building error occur if CONFIG_NET_ROUTE is enabled. Fix suggested by Aleksandr Kazantsev --- net/procfs/net_procfs_route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/procfs/net_procfs_route.c b/net/procfs/net_procfs_route.c index 4b056ba8a2..759af72b4d 100644 --- a/net/procfs/net_procfs_route.c +++ b/net/procfs/net_procfs_route.c @@ -787,12 +787,12 @@ static int route_stat(const char *relpath, struct stat *buf) else #endif #ifdef CONFIG_NET_IPv6 -if (strcmp(relpath, g_route_ipv6_path) == 0) + if (strcmp(relpath, g_route_ipv6_path) == 0) { buf->st_mode = S_IFREG | S_IROTH | S_IRGRP | S_IRUSR; } -#endif else +#endif { return -ENOENT; }