]> 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)
commitc1a5574b55a8284eb1f1bba3475c389facc4e471
tree8c3ea8288d7e6ea9fb8e2f9c0d2c768068014220
parentc4bddae4e21310e8a00cc08868ab7e7234e5075e
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