Commit 94f99bce authored by Antti Keränen's avatar Antti Keränen Committed by Greg Kroah-Hartman

staging: mt7621-pci-phy: prevent use of uninitialized variable

Do not use uninitialized variable 'port' when printing an error message
Signed-off-by: default avatarAntti Keränen <detegr@gmail.com>
Reviewed-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e291fa12
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment