crypto: mv_cesa: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:18:14 +0000 (14:48 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 May 2013 09:55:28 +0000 (17:55 +0800)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c

index ce6290e..3374a3e 100644 (file)
@@ -1146,7 +1146,6 @@ err_unmap_reg:
 err:
        kfree(cp);
        cpg = NULL;
-       platform_set_drvdata(pdev, NULL);
        return ret;
 }