浏览代码

xfrm: C99 for xfrm_dev_notifier

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Alexey Dobriyan 16 年之前
父节点
当前提交
d5917a35ac
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      net/xfrm/xfrm_policy.c

+ 1 - 3
net/xfrm/xfrm_policy.c

@@ -2381,9 +2381,7 @@ static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void
 }
 }
 
 
 static struct notifier_block xfrm_dev_notifier = {
 static struct notifier_block xfrm_dev_notifier = {
-	xfrm_dev_event,
-	NULL,
-	0
+	.notifier_call	= xfrm_dev_event,
 };
 };
 
 
 #ifdef CONFIG_XFRM_STATISTICS
 #ifdef CONFIG_XFRM_STATISTICS