Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tang Bin and committed by
Herbert Xu
9ae219b1 e06da499

-3
-3
drivers/crypto/amlogic/amlogic-gxl-core.c
··· 217 217 struct meson_dev *mc; 218 218 int err, i; 219 219 220 - if (!pdev->dev.of_node) 221 - return -ENODEV; 222 - 223 220 mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); 224 221 if (!mc) 225 222 return -ENOMEM;