crypto: talitos - fix checkpatch warning
PATCH 2/3 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 <[email protected]>
--- drivers/crypto/talitos.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/crypto/talitos.c +1 -2
@@ -2333,8 +2333,7 @@ static int talitos_remove(struct platform_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);
Signature · 1 line
1.7.1