aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/mt7621-pci-phy
diff options
context:
space:
mode:
authorAntti Keränen <detegr@gmail.com>2019-04-04 15:44:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-16 13:44:30 +0200
commit94f99bcedaea6e1726dc424092a2545ec7a8b95e (patch)
tree512636430c4692b8b65f201c81a3e521956ba526 /drivers/staging/mt7621-pci-phy
parentstaging: ralink-gdma: Use struct_size() in kzalloc() (diff)
downloadlinux-dev-94f99bcedaea6e1726dc424092a2545ec7a8b95e.tar.xz
linux-dev-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.c2
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;
}