diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2014-10-23 22:12:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-27 19:16:02 -0400 |
commit | aaa14fe396019adab3877678dd2e3b5a53088be1 (patch) | |
tree | 9052f53614c2a326813a701202b071daea330e18 /drivers/net/ethernet/samsung | |
parent | c960804f536fe810fa7c8c5eb0dffa8c9aa21390 (diff) |
ethernet: samsung: sxgbe: remove unnecessary check
devm_ioremap_resource checks platform_get_resource() return value.
We can remove the duplicate check here.
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/samsung')
-rw-r--r-- | drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c index b147d469a799..7fd6e275d1c2 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c | |||
@@ -90,9 +90,6 @@ static int sxgbe_platform_probe(struct platform_device *pdev) | |||
90 | 90 | ||
91 | /* Get memory resource */ | 91 | /* Get memory resource */ |
92 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 92 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
93 | if (!res) | ||
94 | goto err_out; | ||
95 | |||
96 | addr = devm_ioremap_resource(dev, res); | 93 | addr = devm_ioremap_resource(dev, res); |
97 | if (IS_ERR(addr)) | 94 | if (IS_ERR(addr)) |
98 | return PTR_ERR(addr); | 95 | return PTR_ERR(addr); |