[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>
This commit is contained in:
Harald Welte 2005-08-11 15:30:45 -07:00 committed by David S. Miller
parent e41aac41e3
commit 622439270c

View file

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