Skip to content

Commit

Permalink
crypto: talitos - fix checkpatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Sep 23, 2010
1 parent 1d11911 commit 0b79824
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/crypto/talitos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0b79824

Please sign in to comment.