]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe25f4ecd5c7f7606a2aa5426db869e27a6302f4
tree8c3ea8288d7e6ea9fb8e2f9c0d2c768068014220
parent5b764ea758b2c4a7c88a6e10f9c69a729adac7c7
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