From: Allan Stephens Date: Mon, 24 Oct 2011 14:29:26 +0000 (-0400) Subject: tipc: Eliminate dynamic allocation of broadcast link data structures X-Git-Tag: v3.3-rc1~182^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c47e9b918844ab7bb139eada7b085c576ddf0afb;p=pandora-kernel.git tipc: Eliminate dynamic allocation of broadcast link data structures Creates global variables to hold the broadcast link's pseudo-bearer and pseudo-link structures, rather than allocating them dynamically. There is only a single instance of each structure, and changing over to static allocation allows elimination of code to handle the cases where dynamic allocation was unsuccessful. The memset in the teardown code may look like they aren't used, but the same teardown code is run when there is a non-fatal error at init-time, so that stale data isn't present when the user fixes the cause of the soft error. Signed-off-by: Allan Stephens Signed-off-by: Paul Gortmaker --- Reading git-diff-tree failed