Просмотр исходного кода

[NETFILTER]: Fix compilation when no PROC_FS enabled

Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Harald Welte 20 лет назад
Родитель
Сommit
622439270c
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      net/netfilter/nf_log.c

+ 2 - 2
net/netfilter/nf_log.c

@@ -167,12 +167,12 @@ int __init netfilter_log_init(void)
 {
 {
 #ifdef CONFIG_PROC_FS
 #ifdef CONFIG_PROC_FS
 	struct proc_dir_entry *pde;
 	struct proc_dir_entry *pde;
+
 	pde = create_proc_entry("nf_log", S_IRUGO, proc_net_netfilter);
 	pde = create_proc_entry("nf_log", S_IRUGO, proc_net_netfilter);
-#endif
 	if (!pde)
 	if (!pde)
 		return -1;
 		return -1;
 
 
 	pde->proc_fops = &nflog_file_ops;
 	pde->proc_fops = &nflog_file_ops;
-
+#endif
 	return 0;
 	return 0;
 }
 }