Use BUG_ON instead of a if condition followed by BUG.
Generated by: scripts/coccinelle/misc/bugon.cocci
CC: Mike Rapoport
Signed-off-by: Julia Lawall
Signed-off-by: Fengguang Wu
---
macvtap.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/net/macvtap.c
+++ b/drive
From: Julia Lawall
Date: Wed, 8 Jun 2016 18:15:29 +0200 (CEST)
> Use BUG_ON instead of a if condition followed by BUG.
>
> Generated by: scripts/coccinelle/misc/bugon.cocci
>
> CC: Mike Rapoport
> Signed-off-by: Julia Lawall
> Signed-off-by: Fengguang Wu
This doesn't apply cleanly to any o
On Wed, 8 Jun 2016, David Miller wrote:
> From: Julia Lawall
> Date: Wed, 8 Jun 2016 18:15:29 +0200 (CEST)
>
> > Use BUG_ON instead of a if condition followed by BUG.
> >
> > Generated by: scripts/coccinelle/misc/bugon.cocci
> >
> > CC: Mike Rapoport
> > Signed-off-by: Julia Lawall
> > Si