projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f16e0f
)
net: fec_ptp: remove redundant initialization of variable val
author
Colin Ian King
<colin.i.king@gmail.com>
Sun, 23 Jan 2022 18:49:36 +0000
(18:49 +0000)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 25 Jan 2022 01:07:37 +0000
(17:07 -0800)
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>
drivers/net/ethernet/freescale/fec_ptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/fec_ptp.c
b/drivers/net/ethernet/freescale/fec_ptp.c
index
af99017
..
7d49c28
100644
(file)
--- 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;