diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-23 21:49:36 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-25 04:07:37 +0300 |
commit | 6e667749271e58d34238cf700e543beabdbe6184 (patch) | |
tree | a04c51fb3c1ccdaff3a83fde8510669cbf40c040 /drivers | |
parent | 9f16e0fa1079022632880da3e8346537ba4eeecc (diff) | |
download | linux-6e667749271e58d34238cf700e543beabdbe6184.tar.xz |
net: fec_ptp: remove redundant initialization of variable val
Variable val is being initialized with a value that is never read,
it is being re-assigned later. The assignment is redundant and
can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Link: https://lore.kernel.org/r/20220123184936.113486-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/fec_ptp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c index af99017a5453..7d49c28215f3 100644 --- a/drivers/net/ethernet/freescale/fec_ptp.c +++ b/drivers/net/ethernet/freescale/fec_ptp.c @@ -101,7 +101,6 @@ static int fec_ptp_enable_pps(struct fec_enet_private *fep, uint enable) u32 val, tempval; struct timespec64 ts; u64 ns; - val = 0; if (fep->pps_enable == enable) return 0; |