]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Cleanup ice_update_link_info
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 16 Apr 2019 17:34:54 +0000 (10:34 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 30 May 2019 06:07:22 +0000 (23:07 -0700)
commit0b2e8f7ec926547d9f05b9508f3a1ee0df088ab4
tree947f4dc39c100773136c75be4d96ab5fd555767c
parentcf77506f8edc24d075afb448d576255374e1985b
ice: Cleanup ice_update_link_info

Do not allocate memory for the Get PHY Abilities command data buffer when
it is not necessary, change one local variable to another to reduce the
number of de-references, reduce the scope of some local variables, and
reorder the code and change exit points to get rid of an unnecessary goto
label.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c