net: macb: remove extraneous return when MACB_EXT_DESC is defined
authorColin Ian King <colin.king@canonical.com>
Tue, 4 Jul 2017 15:09:59 +0000 (16:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jul 2017 08:09:36 +0000 (09:09 +0100)
commit42af627b400f32e5b17023f39c4fc24107ca8c3d
treeb3271dbe5e090aed93882e15b47a289496470f08
parent6d3f06a0042ebd59a5e9d4ba6e8a85596901e140
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>
drivers/net/ethernet/cadence/macb_main.c