forked from Minki/linux
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