diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-24 06:37:27 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-12-26 11:19:01 -0500 |
commit | 836a2164491b19dcd4f29d574e548bcadd421a6a (patch) | |
tree | f682683ef0c16fb739bef30797df34cbc8a6644b /drivers/usb/phy | |
parent | 89f836a8c56bfea6585a09f7afff7094968a4fd0 (diff) |
usb: phy: keystone: remove redundant return value check of platform_get_resource()
Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-keystone.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/phy/phy-keystone.c b/drivers/usb/phy/phy-keystone.c index ee1d03b802e1..d762003896c0 100644 --- a/drivers/usb/phy/phy-keystone.c +++ b/drivers/usb/phy/phy-keystone.c | |||
@@ -83,11 +83,6 @@ static int keystone_usbphy_probe(struct platform_device *pdev) | |||
83 | return -ENOMEM; | 83 | return -ENOMEM; |
84 | 84 | ||
85 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 85 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
86 | if (!res) { | ||
87 | dev_err(dev, "missing usb phy resource\n"); | ||
88 | return -EINVAL; | ||
89 | } | ||
90 | |||
91 | k_phy->phy_ctrl = devm_ioremap_resource(dev, res); | 86 | k_phy->phy_ctrl = devm_ioremap_resource(dev, res); |
92 | if (IS_ERR(k_phy->phy_ctrl)) | 87 | if (IS_ERR(k_phy->phy_ctrl)) |
93 | return PTR_ERR(k_phy->phy_ctrl); | 88 | return PTR_ERR(k_phy->phy_ctrl); |