mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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>
This commit is contained in:
parent
1d11911a8c
commit
0b79824745
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user