From: Antti Keränen Date: Thu, 4 Apr 2019 12:44:17 +0000 (+0300) Subject: staging: mt7621-pci-phy: prevent use of uninitialized variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=94f99bcedaea6e1726dc424092a2545ec7a8b95e;p=linux.git 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 Reviewed-by: Sergio Paracuellos Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c b/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c index 118302c122ee6..aa3ae77776323 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; }