crypto: ux500 - Delete two unnecessary variable initialisations in ux500_cryp_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 14 Feb 2018 09:56:38 +0000 (10:56 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:34 +0000 (22:16 +0800)
Two local variables will eventually be set to appropriate pointers
a bit later. Thus omit their explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/cryp/cryp_core.c

index 7c811d7..cb31b59 100644 (file)
@@ -1404,8 +1404,8 @@ static void cryp_algs_unregister_all(void)
 static int ux500_cryp_probe(struct platform_device *pdev)
 {
        int ret;
-       struct resource *res = NULL;
-       struct resource *res_irq = NULL;
+       struct resource *res;
+       struct resource *res_irq;
        struct cryp_device_data *device_data;
        struct cryp_protection_config prot = {
                .privilege_access = CRYP_STATE_ENABLE