ipv4: tcp_minisocks: use BUG_ON instead of if condition followed by BUG
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 23 Oct 2017 18:10:56 +0000 (13:10 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 09:44:42 +0000 (18:44 +0900)
commit49ca1943a7adb429b11b8e05d81bc821694b76c7
tree25661b484b2304a18a7247604cad2b36b14cd750
parent152854025528b30c5ca5113a443ead98c3f1e7a5
ipv4: tcp_minisocks: use BUG_ON instead of if condition followed by BUG

Use BUG_ON instead of if condition followed by BUG in tcp_time_wait.

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/ipv4/tcp_minisocks.c