]> git.baikalelectronics.ru Git - kernel.git/commit
libfc: Micro-optimize fc_setup_exch_mgr()
authorBart Van Assche <bvanassche@acm.org>
Wed, 14 Aug 2013 15:33:35 +0000 (15:33 +0000)
committerRobert Love <robert.w.love@intel.com>
Wed, 4 Sep 2013 20:02:09 +0000 (13:02 -0700)
commitc513ac561ce6c67abe50936a87cc6f2f33f64bd5
treede837cc86761c23c6f21dd42a8164c8503040741
parentad646cc0322377d8eb034ebe129761898a1c4c67
libfc: Micro-optimize fc_setup_exch_mgr()

Convert a loop into an ilog2() call. Although this code is not performance
sensitive this conversion makes this code easier to read.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
drivers/scsi/libfc/fc_exch.c