]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: rtnetlink: use BUG_ON instead of if condition followed by BUG
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sat, 21 Oct 2017 00:43:11 +0000 (19:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2017 04:31:45 +0000 (05:31 +0100)
commit12b5e2d03994fc61caf547cd5826cb98a12dc12c
treed48c5f0c1caed41af8c2b87c23fc82c4ae238a45
parentd439dbcbf18ad23305fec4832ecfca831dad3845
net: core: rtnetlink: use BUG_ON instead of if condition followed by BUG

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 <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c