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>
This commit is contained in:
parent
9f16e0fa10
commit
6e66774927
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue