]> git.baikalelectronics.ru Git - kernel.git/commit
ice: use 'int err' instead of 'int status' in ice_ptp_hw.c
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 13 Oct 2021 15:51:36 +0000 (08:51 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Dec 2021 17:11:02 +0000 (09:11 -0800)
commitb898be27f4c2f005bfcc5c5c685a793f72233cf5
treef78c02dc84d9e742cac52bd9dad9f2ba8d2d9204
parentbf638043050861e3000559511529295ea9d69ecd
ice: use 'int err' instead of 'int status' in ice_ptp_hw.c

The ice_ptp_hw.c file introduced a bunch of uses of "int status" instead
of the more traditional "int err" or "int ret". These are actually
traditional Linux error codes (as opposed to the recently removed
ice_status enumeration values).

We're about to add a bunch of new functions to ice_ptp_hw.c. It's
normally preferred in the ice driver to use "int ret" or "int err" when
dealing with error code values.

Instead of making the new functions use "int status" lets just fix all
of ice_ptp_hw.c to use "int err". This will match the new functions and
ensures a consistent style across at least the PTP related files.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp_hw.c