Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d472e42a authored by Tudor-Dan Ambarus's avatar Tudor-Dan Ambarus Committed by Herbert Xu
Browse files

crypto: atmel - remove useless irq init



irq would be set to -1 and then unused, if we failed to get IORESOURCE_MEM.

Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3c88761e
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -2658,8 +2658,6 @@ static int atmel_aes_probe(struct platform_device *pdev)


	crypto_init_queue(&aes_dd->queue, ATMEL_AES_QUEUE_LENGTH);
	crypto_init_queue(&aes_dd->queue, ATMEL_AES_QUEUE_LENGTH);


	aes_dd->irq = -1;

	/* Get the base address */
	/* Get the base address */
	aes_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	aes_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!aes_res) {
	if (!aes_res) {
+0 −2
Original line number Original line Diff line number Diff line
@@ -2777,8 +2777,6 @@ static int atmel_sha_probe(struct platform_device *pdev)


	crypto_init_queue(&sha_dd->queue, ATMEL_SHA_QUEUE_LENGTH);
	crypto_init_queue(&sha_dd->queue, ATMEL_SHA_QUEUE_LENGTH);


	sha_dd->irq = -1;

	/* Get the base address */
	/* Get the base address */
	sha_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	sha_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!sha_res) {
	if (!sha_res) {
+0 −2
Original line number Original line Diff line number Diff line
@@ -1381,8 +1381,6 @@ static int atmel_tdes_probe(struct platform_device *pdev)


	crypto_init_queue(&tdes_dd->queue, ATMEL_TDES_QUEUE_LENGTH);
	crypto_init_queue(&tdes_dd->queue, ATMEL_TDES_QUEUE_LENGTH);


	tdes_dd->irq = -1;

	/* Get the base address */
	/* Get the base address */
	tdes_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	tdes_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!tdes_res) {
	if (!tdes_res) {