]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Change req_speeds to be u16
authorChinh T Cao <chinh.t.cao@intel.com>
Mon, 5 Nov 2018 20:18:35 +0000 (12:18 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Nov 2018 17:37:28 +0000 (09:37 -0800)
commitf16a8db05d0f6c748b2200590ee9a10915d24319
tree4eaba0f799a3617fa386ccf03ad6c8d485b80f27
parent4237745bd31a717c45a0b46b3390bb3a2146a966
ice: Change req_speeds to be u16

Since the req_speeds field in struct ice_link_status is a u8,
req_speeds & ICE_AQ_LINK_SPEED_40GB always returns 0. This was caught
by a coverity scan.

Fix this by changing req_speeds to be u16.

Reported-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Chinh T Cao <chinh.t.cao@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_type.h