net/ice/base: clean code wrapping
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 06:34:04 +0000 (14:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commit465f3809a61b9791e54059a8248ef6ebaa5cb9b5
tree5cf41eb4e642c24b2f95136c5f0b719d31a6ae30
parentb41ed0021fe639b7207042b5a2b9d1e19a6dca54
net/ice/base: clean code wrapping

To make the wrapping a little cleaner, move the variables only applicable
to ICE_FC_AUTO into that case. Also move caching of the value to only occur
on success.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@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_common.c