net/ice/base: refactor a function
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 23 Mar 2020 07:17:32 +0000 (15:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:04 +0000 (13:57 +0200)
commit88ea6b3b7ae6223782fe5a03714e07baa55a696a
tree5528b72a14d0ca13ef5d7f8b575cbd30efceb1b7
parent795604170aa3e1200a6fa3099bc2d0ebf9dd267d
net/ice/base: refactor a function

Refactor function ice_prof_bld_xlt2, a switch statement is better suited
for this situation and eliminates the need for the "found" variable.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c