Re: [PATCH] net: bcmgenet: Use BUG_ON instead of if condition followed by BUG

From: David Miller
Date: Fri Oct 27 2017 - 10:56:22 EST


From: "Gustavo A. R. Silva" <garsilva@xxxxxxxxxxxxxx>
Date: Thu, 26 Oct 2017 07:16:01 -0500

> Use BUG_ON instead of if condition followed by BUG.
>
> Something to notice in this particular case is that unlikely()
> is already being called inside BUG_ON macro.
>
> This issue was detected with the help of Coccinelle.
>
> Signed-off-by: Gustavo A. R. Silva <garsilva@xxxxxxxxxxxxxx>

Applied.