]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit152854025528b30c5ca5113a443ead98c3f1e7a5
tree1f5f391f310e73115c02d2eb67c5e4eec9e8a28f
parent31749468c3f9d77927ed3144259dc208e6625ede
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