From: Chuck Lever Date: Thu, 11 Dec 2008 22:55:59 +0000 (-0500) Subject: NSM: More clean up of nsm_get_handle() X-Git-Tag: v2.6.29-rc1~177^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a3ef33e2de6fc8aabd7cb1700bfef81757c28a;p=pandora-kernel.git NSM: More clean up of nsm_get_handle() Clean up: refactor nsm_get_handle() so it is organized the same way that nsm_reboot_lookup() is. There is an additional micro-optimization here. This change moves the "hostname & nsm_use_hostnames" test out of the list_for_each_entry() clause in nsm_get_handle(), since it is loop-invariant. Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed