diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2010-09-23 03:56:08 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-09-23 03:56:08 -0400 |
commit | 0b798247453299c895e3fa1629101dd5e94901b2 (patch) | |
tree | 18af205b2b52d981156877bd6b9adaf5a13a895f /drivers/crypto/talitos.c | |
parent | 1d11911a8c572041880c8d86229f6ed971f6f7e2 (diff) |
crypto: talitos - fix checkpatch warning
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>
Diffstat (limited to 'drivers/crypto/talitos.c')
-rw-r--r-- | drivers/crypto/talitos.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index bbf39991c0d0..1444f8c4dbdd 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -2333,8 +2333,7 @@ static int talitos_remove(struct of_device *ofdev) | |||
2333 | talitos_unregister_rng(dev); | 2333 | talitos_unregister_rng(dev); |
2334 | 2334 | ||
2335 | for (i = 0; i < priv->num_channels; i++) | 2335 | for (i = 0; i < priv->num_channels; i++) |
2336 | if (priv->chan[i].fifo) | 2336 | kfree(priv->chan[i].fifo); |
2337 | kfree(priv->chan[i].fifo); | ||
2338 | 2337 | ||
2339 | kfree(priv->chan); | 2338 | kfree(priv->chan); |
2340 | 2339 | ||