mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
net: macb: remove extraneous return when MACB_EXT_DESC is defined
When macro MACB_EXT_DESC is defined we end up with two identical
return statements and just one is sufficient. Remove the extra
return.
Detected by CoverityScan, CID#1449361 ("Structurally dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6d3f06a004
commit
42af627b40
|
|
@ -146,7 +146,6 @@ static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx
|
|||
default:
|
||||
break;
|
||||
}
|
||||
return desc_idx;
|
||||
#endif
|
||||
return desc_idx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user