]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: ralink: phy-mt7621-pci: fix return value check in mt7621_pci_phy_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 5 Mar 2021 03:49:31 +0000 (03:49 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 15 Mar 2021 10:17:42 +0000 (15:47 +0530)
commit7e9908d1ab2e76cfb08bc1f602688486b0ed9952
tree7fa5610054704f55dbd5f4bc4ee1d98e92bf79ef
parent23ee15ed613b49efedb1443e7060f096115e70de
phy: ralink: phy-mt7621-pci: fix return value check in mt7621_pci_phy_probe()

Fix the return value check which testing the wrong variable
in mt7621_pci_phy_probe().

Fixes: d87da32372a0 ("phy: ralink: Add PHY driver for MT7621 PCIe PHY")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210305034931.3237558-1-weiyongjun1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ralink/phy-mt7621-pci.c