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>
 
        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) {
 
 
        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) {
 
 
        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) {