From: Pavel Emelyanov Date: Thu, 18 Oct 2007 02:45:23 +0000 (-0700) Subject: [INET]: Consolidate xxx_frag_alloc() X-Git-Tag: v2.6.24-rc1~294^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e521db9d790aaa60ae8920e21cb7faedc280fc36;p=pandora-kernel.git [INET]: Consolidate xxx_frag_alloc() Just perform the kzalloc() allocation and setup common fields in the inet_frag_queue(). Then return the result to the caller to initialize the rest. The inet_frag_alloc() may return NULL, so check the return value before doing the container_of(). This looks ugly, but the xxx_frag_alloc() will be removed soon. The xxx_expire() timer callbacks are patches, because the argument is now the inet_frag_queue, not the protocol specific queue. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed