ice: remove unnecessary NULL checks before ptp_read_system_*
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 14 Jun 2021 16:59:16 +0000 (09:59 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 17 Jun 2021 16:24:27 +0000 (09:24 -0700)
commit1e00113413a48b6e683244817ea04df95c515d46
tree8c3ea8288d7e6ea9fb8e2f9c0d2c768068014220
parentb13ad3e08df7b434db5e675f47c3201051f41b05
ice: remove unnecessary NULL checks before ptp_read_system_*

The ptp_read_system_prets and ptp_read_system_postts functions already
check for the NULL value of the ptp_system_timestamp structure pointer.
There is no need to check this manually in the ice driver code. Remove
the checks.

Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.c