]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Simplify the do-while allocation loop
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 18 Jan 2021 15:13:15 +0000 (16:13 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 12 Feb 2021 18:33:42 +0000 (10:33 -0800)
commite500f50bac2b7ba6d625b84ac7eeb19775503331
tree485e0ef2acc15f957049b4b2faea65f56173e82a
parentb861f75ae8b52cab7e9414099ad6628da8bf2e86
i40e: Simplify the do-while allocation loop

Fold the count decrement into the while-statement.

Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_xsk.c