Re: [PATCH v2] ipv6: esp6: use BUG_ON instead of if condition followed by BUG

From: Gustavo A. R. Silva
Date: Fri Oct 27 2017 - 00:12:58 EST



Quoting Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>:

On Thu, Oct 26, 2017 at 07:51:06AM -0500, Gustavo A. R. Silva wrote:
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@xxxxxxxxxxxxxx>

Acked-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

Thanks!

--
Gustavo A. R. Silva