Re: [PATCH v2] net/core: Fix BUG to BUG_ON conditionals.

From: David Miller
Date: Tue Oct 10 2017 - 15:32:57 EST


From: Tim Hansen <devtimhansen@xxxxxxxxx>
Date: Mon, 9 Oct 2017 11:37:59 -0400

> Fix BUG() calls to use BUG_ON(conditional) macros.
>
> This was found using make coccicheck M=net/core on linux next
> tag next-2017092
>
> Signed-off-by: Tim Hansen <devtimhansen@xxxxxxxxx>

Althrough there were objections raised, none of them technically
stand up, and this does improve code generation for some
architectures, so I have applied this.

Thanks!