aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King2021-09-29 14:27:53 +0100
committerDavid S. Miller2021-09-30 13:15:13 +0100
commit75f81afb27c366fa5a85bd2b75d0e9fd00097a50 (patch)
treeec03cfb29ccbfc3b415cd5202268ba4a37aec060
parente51bb5c2784c30959535ed20bda9754bbf67416a (diff)
octeontx2-af: Remove redundant initialization of variable pin
The variable pin is being initialized with a value that is never read, it is being updated later on in only one case of a switch statement. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
index 977a8a40d7d1..85b1f140d3dd 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
@@ -194,7 +194,7 @@ static int otx2_ptp_enable(struct ptp_clock_info *ptp_info,
{
struct otx2_ptp *ptp = container_of(ptp_info, struct otx2_ptp,
ptp_info);
- int pin = -1;
+ int pin;
if (!ptp->nic)
return -ENODEV;