From: Paul Moore Date: Sun, 16 Sep 2007 04:45:13 +0000 (-0700) Subject: [CIPSO]: remove duplicated code in the cipso_v4_*_getattr() functions X-Git-Tag: v2.6.24-rc1~1454^2~485 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63d804eade298208037045ab6728c933f2b6c27d;p=pandora-kernel.git [CIPSO]: remove duplicated code in the cipso_v4_*_getattr() functions The bulk of the CIPSO option parsing/processing in the cipso_v4_sock_getattr() and cipso_v4_skb_getattr() functions are identical, the only real difference being where the functions obtain the CIPSO option itself. This patch creates a new function, cipso_v4_getattr(), which contains the common CIPSO option parsing/processing code and modifies the existing functions to call this new helper function. Signed-off-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed