From: Ying Xue Date: Fri, 18 Oct 2013 05:23:18 +0000 (+0200) Subject: tipc: avoid unnecessary lookup for tipc bearer instance X-Git-Tag: v3.13-rc1~105^2~177^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2875c3cc4769d07bab3bc6e51c386840a7de280;p=pandora-kernel.git tipc: avoid unnecessary lookup for tipc bearer instance tipc_block_bearer() currently takes a bearer name (const char*) as argument. This requires the function to make a lookup to find the pointer to the corresponding bearer struct. In the current code base this is not necessary, since the only two callers (tipc_continue(),recv_notification()) already have validated copies of this pointer, and hence can pass it directly in the function call. We change tipc_block_bearer() to directly take struct tipc_bearer* as argument instead. Signed-off-by: Ying Xue Reviewed-by: Paul Gortmaker Signed-off-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed