diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2021-02-10 11:16:37 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-03-07 15:13:14 +1100 |
commit | 9ae219b199314790180da30fce231317142770dc (patch) | |
tree | 3468851cd252a12d89e7d8834eed6e2814114bb9 /drivers/crypto/amlogic | |
parent | e06da499d69a0b34d5824c5fde38f1f7e1eb9833 (diff) | |
download | linux-9ae219b199314790180da30fce231317142770dc.tar.gz linux-9ae219b199314790180da30fce231317142770dc.tar.bz2 linux-9ae219b199314790180da30fce231317142770dc.zip |
crypto: amlogic - Fix unnecessary check in meson_crypto_probe()
The function meson_crypto_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/amlogic')
-rw-r--r-- | drivers/crypto/amlogic/amlogic-gxl-core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/crypto/amlogic/amlogic-gxl-core.c b/drivers/crypto/amlogic/amlogic-gxl-core.c index 5bbeff433c8c..6e7ae896717c 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -217,9 +217,6 @@ static int meson_crypto_probe(struct platform_device *pdev) struct meson_dev *mc; int err, i; - if (!pdev->dev.of_node) - return -ENODEV; - mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); if (!mc) return -ENOMEM; |