diff options
author | Antti Keränen <detegr@gmail.com> | 2019-04-04 15:44:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-16 13:44:30 +0200 |
commit | 94f99bcedaea6e1726dc424092a2545ec7a8b95e (patch) | |
tree | 512636430c4692b8b65f201c81a3e521956ba526 /drivers/staging/mt7621-pci-phy | |
parent | e291fa1237a74dc4692995a4a598d4818a747191 (diff) | |
download | talos-op-linux-94f99bcedaea6e1726dc424092a2545ec7a8b95e.tar.gz talos-op-linux-94f99bcedaea6e1726dc424092a2545ec7a8b95e.zip |
staging: mt7621-pci-phy: prevent use of uninitialized variable
Do not use uninitialized variable 'port' when printing an error message
Signed-off-by: Antti Keränen <detegr@gmail.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-pci-phy')
-rw-r--r-- | drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c b/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c index 118302c122ee..aa3ae7777632 100644 --- a/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c +++ b/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c @@ -331,7 +331,7 @@ static int mt7621_pci_phy_probe(struct platform_device *pdev) ret = of_address_to_resource(np, 0, &res); if (ret) { - dev_err(dev, "failed to get address resource(id-%d)\n", port); + dev_err(dev, "failed to get address resource\n"); return ret; } |