e1000e: remove unnecessary range check in e1000e_phc_adjfreq
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 21 Jul 2022 21:29:56 +0000 (14:29 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 28 Jul 2022 17:55:56 +0000 (10:55 -0700)
commitab8e8db27e829bc7077c4db36ed9e3e0c5daeae8
treeff74dde24fe0b675498dd7609093c728fd93e6bd
parent4488df1401522cd263166ef8799d56661baf83b0
e1000e: remove unnecessary range check in e1000e_phc_adjfreq

The e1000e_phc_adjfreq function validates that the input delta is within
the maximum range. This is already handled by the core PTP code and this is
a duplicate and thus unnecessary check. It also complicates refactoring to
use the newer .adjfine implementation, where the input is no longer
specified in parts per billion. Remove the range validation check.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/e1000e/ptp.c