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>
Tue, 30 Mar 2021 18:05:17 +0000 (23:35 +0530)
commitb976c987511e34a2e9b23545de912a121a9eded5
tree63583ffd22078cb67666029fc4f01c704069fd2a
parent6cb17707aad869de163d7bf42c253caf501be4e2
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