mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
net: dl2k: remove redundant re-assignment to np
The pointer np is initialized and then re-assigned the same value a few lines later. Remove the redundant duplicated assignment. Cleans up clang warning: drivers/net/ethernet/dlink/dl2k.c:314:25: warning: Value stored to 'np' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3a1246fcbc
commit
5618c8e24a
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ find_miiphy (struct net_device *dev)
|
|||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
int i, phy_found = 0;
|
||||
np = netdev_priv(dev);
|
||||
|
||||
np->phy_addr = 1;
|
||||
|
||||
for (i = 31; i >= 0; i--) {
|
||||
|
|
Loading…
Reference in a new issue