Commit 99dcb843 authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by David S. Miller
Browse files

net: macb: Remove dead code

macb_64b_desc is always called when HW_DMA_CAP_64B is defined.
So the return NULL can never be reached. Remove the dead code.

Signed-off-by: default avatarShubhrajyoti Datta <>
Reviewed-by: default avatarClaudiu Beznea <>
Signed-off-by: default avatarDavid S. Miller <>
parent b0ce902f
......@@ -165,9 +165,8 @@ static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx
static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc)
if (bp->hw_dma_cap & HW_DMA_CAP_64B)
return (struct macb_dma_desc_64 *)((void *)desc + sizeof(struct macb_dma_desc));
return NULL;
return (struct macb_dma_desc_64 *)((void *)desc
+ sizeof(struct macb_dma_desc));
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