netevent: remove automatic variable in register_netevent_notifier()
authorWang Long <long.wanglong@huawei.com>
Fri, 29 May 2015 01:02:08 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 07:03:21 +0000 (00:03 -0700)
commit282c320d33541d61f4ab91248448040c4ebab1fc
tree7881fb7b472f19398e2f9407906b89df8a2e5c60
parent583d3f5af2a6dfa7866715d9e062dbfb3b66a6f0
netevent: remove automatic variable in register_netevent_notifier()

Remove automatic variable 'err' in register_netevent_notifier() and
return the result of atomic_notifier_chain_register() directly.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netevent.c