crypto: talitos - fix checkpatch warning
authorKim Phillips <kim.phillips@freescale.com>
Thu, 23 Sep 2010 07:56:08 +0000 (15:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Sep 2010 07:56:08 +0000 (15:56 +0800)
WARNING: kfree(NULL) is safe this check is probably not required
+ if (priv->chan[i].fifo)
+ kfree(priv->chan[i].fifo);

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c

index bbf3999..1444f8c 100644 (file)
@@ -2333,8 +2333,7 @@ static int talitos_remove(struct of_device *ofdev)
                talitos_unregister_rng(dev);
 
        for (i = 0; i < priv->num_channels; i++)
-               if (priv->chan[i].fifo)
-                       kfree(priv->chan[i].fifo);
+               kfree(priv->chan[i].fifo);
 
        kfree(priv->chan);