diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2016-07-31 13:42:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-01 13:32:53 -0700 |
commit | 58d5aaea05e331cb2164bdfeb6927b05c19e061e (patch) | |
tree | 1448c8b1163b04f53383b2a8f37db7bfd81eed59 /drivers/net | |
parent | 41fc1e0fe2102435b7e35c36dd2d61669cdf787b (diff) | |
download | linux-stable-58d5aaea05e331cb2164bdfeb6927b05c19e061e.tar.gz linux-stable-58d5aaea05e331cb2164bdfeb6927b05c19e061e.tar.bz2 linux-stable-58d5aaea05e331cb2164bdfeb6927b05c19e061e.zip |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/b53/b53_mmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/dsa/b53/b53_mmap.c b/drivers/net/dsa/b53/b53_mmap.c index 21f1068b0804..77ffc4312808 100644 --- 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); |