ipv6: esp6: use BUG_ON instead of if condition followed by BUG
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 26 Oct 2017 12:51:06 +0000 (07:51 -0500)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 27 Oct 2017 06:02:00 +0000 (08:02 +0200)
commiteee12df5a0bd5769af5efb72fa95dd1f633a266c
tree4e04dc40c9ad9e206b35a13ca98adf5370fabbde
parent2fc5f83b92ba93f8f7119461d998bcdb1ac519ac
ipv6: esp6: use BUG_ON instead of if condition followed by BUG

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

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv6/esp6.c