summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-sha.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-12-05 09:53:51 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 16:44:32 +0800
commitc9063a0281d98cb3b542f6a0ae20812f0597a365 (patch)
tree02ea7e8cb2fe1bcb88c36aa7d9dab8fa4139fddf /drivers/crypto/atmel-sha.c
parent0efe58f3e9c8552f996d4f07b29393b3392731cf (diff)
downloadlinux-c9063a0281d98cb3b542f6a0ae20812f0597a365.tar.gz
linux-c9063a0281d98cb3b542f6a0ae20812f0597a365.tar.bz2
linux-c9063a0281d98cb3b542f6a0ae20812f0597a365.zip
crypto: atmel-{aes,sha,tdes} - Drop superfluous error message in probe()
In case the probe fails, the device/driver core takes care of printing the driver name, device name and error code. Drop superfluous error message at probe. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-sha.c')
-rw-r--r--drivers/crypto/atmel-sha.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
index 48ec0aff3281..7980b89d8395 100644
--- a/drivers/crypto/atmel-sha.c
+++ b/drivers/crypto/atmel-sha.c
@@ -2734,10 +2734,8 @@ static int atmel_sha_probe(struct platform_device *pdev)
int err;
sha_dd = devm_kzalloc(&pdev->dev, sizeof(*sha_dd), GFP_KERNEL);
- if (sha_dd == NULL) {
- err = -ENOMEM;
- goto sha_dd_err;
- }
+ if (!sha_dd)
+ return -ENOMEM;
sha_dd->dev = dev;
@@ -2846,8 +2844,6 @@ iclk_unprepare:
res_err:
tasklet_kill(&sha_dd->queue_task);
tasklet_kill(&sha_dd->done_task);
-sha_dd_err:
- dev_err(dev, "initialization failed.\n");
return err;
}