Browse Source

dsa: b53: remove redundant if

For pdata == null the code leaves with an error.
There is no need to check the condition again.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
xypron.glpk@gmx.de 9 years ago
parent
commit
58d5aaea05
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/net/dsa/b53/b53_mmap.c

+ 1 - 2
drivers/net/dsa/b53/b53_mmap.c

@@ -233,8 +233,7 @@ static int b53_mmap_probe(struct platform_device *pdev)
 	if (!dev)
 		return -ENOMEM;
 
-	if (pdata)
-		dev->pdata = pdata;
+	dev->pdata = pdata;
 
 	platform_set_drvdata(pdev, dev);