ice: PTP: move quad value check inside ice_fill_phy_msg_e822
authorKarol Kolacinski <karol.kolacinski@intel.com>
Wed, 26 Jul 2023 18:27:45 +0000 (11:27 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Sep 2023 17:39:10 +0000 (10:39 -0700)
commitdd84744cf5ea967c8d53aae6b6a45703dbc5c5c4
tree9cafb2068eed2014791b478da4381f2cde96ff36
parent64fd7de2469dd52a7f1517ce95ae22fcb391a8a1
ice: PTP: move quad value check inside ice_fill_phy_msg_e822

The callers of ice_fill_phy_msg_e822 check for whether the quad number is
within the expected range. Move this check inside the ice_fill_phy_msg_e822
function instead of duplicating it twice.

Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp_hw.c