]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
crypto: atmel - remove useless irq init
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>
Mon, 23 Oct 2017 15:34:41 +0000 (18:34 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:24 +0000 (22:11 +0800)
irq would be set to -1 and then unused, if we failed to get IORESOURCE_MEM.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
drivers/crypto/atmel-sha.c
drivers/crypto/atmel-tdes.c

index 9659759dcba9d4b8c88e8b0a50edb75bed2deab0..889830e5b6518d2be5df9591c64058008f323155 100644 (file)
@@ -2658,8 +2658,6 @@ static int atmel_aes_probe(struct platform_device *pdev)
 
        crypto_init_queue(&aes_dd->queue, ATMEL_AES_QUEUE_LENGTH);
 
-       aes_dd->irq = -1;
-
        /* Get the base address */
        aes_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!aes_res) {
index 42c1f7479ab622014dfa74d2a37501431904f6a1..8874aa5ca0f71f64853a701960e02115ae6f0327 100644 (file)
@@ -2777,8 +2777,6 @@ static int atmel_sha_probe(struct platform_device *pdev)
 
        crypto_init_queue(&sha_dd->queue, ATMEL_SHA_QUEUE_LENGTH);
 
-       sha_dd->irq = -1;
-
        /* Get the base address */
        sha_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!sha_res) {
index 0ece4b85c9db5b0e2805fdc2dcbddb8dadef82e3..8587be54a74e8951104ab4fad9b349ccb3afe92a 100644 (file)
@@ -1381,8 +1381,6 @@ static int atmel_tdes_probe(struct platform_device *pdev)
 
        crypto_init_queue(&tdes_dd->queue, ATMEL_TDES_QUEUE_LENGTH);
 
-       tdes_dd->irq = -1;
-
        /* Get the base address */
        tdes_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!tdes_res) {