staging: mt7621-pci-phy: prevent use of uninitialized variable
authorAntti Keränen <detegr@gmail.com>
Thu, 4 Apr 2019 12:44:17 +0000 (15:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Apr 2019 11:44:30 +0000 (13:44 +0200)
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>
drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c

index 118302c..aa3ae77 100644 (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;
        }