Skip to content

Commit

Permalink
ethernet: samsung: sxgbe: remove unnecessary check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Varka Bhadram authored and David S. Miller committed Oct 27, 2014
1 parent c960804 commit aaa14fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ static int sxgbe_platform_probe(struct platform_device *pdev)

/* Get memory resource */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res)
goto err_out;

addr = devm_ioremap_resource(dev, res);
if (IS_ERR(addr))
return PTR_ERR(addr);
Expand Down

0 comments on commit aaa14fe

Please sign in to comment.