Commit 79876e03 authored by Cyril Roelandt's avatar Cyril Roelandt Committed by David S. Miller
Browse files

net: ethernet: ti: remove redundant NULL check.

cpdma_chan_destroy() on a NULL pointer is a no-op, so the NULL check in
cpdma_ctlr_destroy() can safely be removed.
Signed-off-by: default avatarCyril Roelandt <>
Signed-off-by: default avatarDavid S. Miller <>
parent c9af6db4
......@@ -460,10 +460,8 @@ int cpdma_ctlr_destroy(struct cpdma_ctlr *ctlr)
if (ctlr->state != CPDMA_STATE_IDLE)
for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++) {
if (ctlr->channels[i])
for (i = 0; i < ARRAY_SIZE(ctlr->channels); i++)
spin_unlock_irqrestore(&ctlr->lock, flags);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment