projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41fc1e0
)
dsa: b53: remove redundant if
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Sun, 31 Jul 2016 11:42:33 +0000
(13:42 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 1 Aug 2016 20:32:53 +0000
(13:32 -0700)
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>
drivers/net/dsa/b53/b53_mmap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/dsa/b53/b53_mmap.c
b/drivers/net/dsa/b53/b53_mmap.c
index 21f1068b080414e5ba0206cfa7f2439ac1c933a8..77ffc431280855adee1604668ab84ebd9bb07a76 100644
(file)
--- a/
drivers/net/dsa/b53/b53_mmap.c
+++ b/
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);