[PATCH] mips/bcm63xx: Use BUG_ON instead of if condition followed by BUG

Florian Fainelli f.fainelli at gmail.com
Fri Apr 23 16:45:41 BST 2021



On 4/23/2021 1:30 AM, zhouchuangao wrote:
> BUG_ON uses unlikely in if(), it can be optimized at compile time.
> 
> Usually, the condition in if() is not satisfied. In my opinion,
> this can improve the efficiency of the multi-stage pipeline.
> 
> Signed-off-by: zhouchuangao <zhouchuangao at vivo.com>

Acked-by: Florian Fainelli <f.fainelli at gmail.com>

Subject prefix should have been: MIPS: BCM63XX: Use BUG_ON instead of
condition followed by BUG to match prior submissions done to this
directory. Thanks.
-- 
Florian



More information about the linux-arm-kernel mailing list