Skip to content

Commit 330348d

Browse files
ikhorndavem330
authored andcommitted
net: ethernet: ti: cpsw: remove unused priv lock
There is no reason in this lock. At least for now. Signed-off-by: Ivan Khoronzhuk <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9b6d539 commit 330348d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ static inline void slave_write(struct cpsw_slave *slave, u32 val, u32 offset)
364364
}
365365

366366
struct cpsw_priv {
367-
spinlock_t lock;
368367
struct platform_device *pdev;
369368
struct net_device *ndev;
370369
struct napi_struct napi_rx;
@@ -2124,7 +2123,6 @@ static int cpsw_probe_dual_emac(struct platform_device *pdev,
21242123
}
21252124

21262125
priv_sl2 = netdev_priv(ndev);
2127-
spin_lock_init(&priv_sl2->lock);
21282126
priv_sl2->data = *data;
21292127
priv_sl2->pdev = pdev;
21302128
priv_sl2->ndev = ndev;
@@ -2243,7 +2241,6 @@ static int cpsw_probe(struct platform_device *pdev)
22432241

22442242
platform_set_drvdata(pdev, ndev);
22452243
priv = netdev_priv(ndev);
2246-
spin_lock_init(&priv->lock);
22472244
priv->pdev = pdev;
22482245
priv->ndev = ndev;
22492246
priv->dev = &ndev->dev;

0 commit comments

Comments
 (0)