Re: [PATCH] net: core: rtnetlink: use BUG_ON instead of if condition followed by BUG

2017-10-22 Thread David Miller
From: "Gustavo A. R. Silva" Date: Fri, 20 Oct 2017 19:43:11 -0500 > Use BUG_ON instead of if condition followed by BUG in do_setlink. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Applied.

[PATCH] net: core: rtnetlink: use BUG_ON instead of if condition followed by BUG

2017-10-20 Thread Gustavo A. R. Silva
Use BUG_ON instead of if condition followed by BUG in do_setlink. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- This code was tested by compilation only. net/core/rtnetlink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net