From: wangweidong Date: Wed, 12 Feb 2014 01:44:44 +0000 (+0800) Subject: sctp: optimize the sctp_sysctl_net_register X-Git-Tag: v3.14-rc4~30^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb842c45e667332774196bd5a1d539d048159cc;p=pandora-kernel.git sctp: optimize the sctp_sysctl_net_register Here, when the net is init_net, we needn't to kmemdup the ctl_table again. So add a check for net. Also we can save some memory. Signed-off-by: Wang Weidong Acked-by: Neil Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed