Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42af627b authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d3f06a0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}