]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Slightly simply ice_find_free_recp_res_idx
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 17 Nov 2021 21:21:19 +0000 (22:21 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 6 Jan 2022 18:15:25 +0000 (10:15 -0800)
commitf66c669afb4f929836fcbb55f135d6a3c36c166a
tree3ab2121e217f7f45193be0d3cc7f7a898fa700f6
parent0b13bdab282a8eaf1a9993ecdeb4c7eeed6318e1
ice: Slightly simply ice_find_free_recp_res_idx

The 'possible_idx' bitmap is set just after it is zeroed, so we can save
the first step.

The 'free_idx' bitmap is used only at the end of the function as the
result of a bitmap xor operation. So there is no need to explicitly
zero it before.

So, slightly simply the code and remove 2 useless 'bitmap_zero()' call

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c