]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: icmp: use BUG_ON instead of if condition followed by BUG
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 23 Oct 2017 18:08:14 +0000 (13:08 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 09:44:42 +0000 (18:44 +0900)
commit2efd30a6d02b6c4ecf3055351198f63c821311fb
tree1f5f391f310e73115c02d2eb67c5e4eec9e8a28f
parent98e3ac82cfea9f43d551f7d5e52b59429fdb07da
ipv4: icmp: use BUG_ON instead of if condition followed by BUG

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

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/icmp.c