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>
This commit is contained in:
Родитель
e06da499d6
Коммит
9ae219b199
|
@ -217,9 +217,6 @@ static int meson_crypto_probe(struct platform_device *pdev)
|
||||||
struct meson_dev *mc;
|
struct meson_dev *mc;
|
||||||
int err, i;
|
int err, i;
|
||||||
|
|
||||||
if (!pdev->dev.of_node)
|
|
||||||
return -ENODEV;
|
|
||||||
|
|
||||||
mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL);
|
mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL);
|
||||||
if (!mc)
|
if (!mc)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче