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>
This commit is contained in:
Antti Keränen 2019-04-04 15:44:17 +03:00 committed by Greg Kroah-Hartman
parent e291fa1237
commit 94f99bceda

View File

@ -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;
}