RE: [PATCH] ipv4: esp4: use BUG_ON instead of if condition followed by BUG

2017-10-24 Thread Yossi Kuperman
> Subject: [PATCH] ipv4: esp4: 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 >

[PATCH] ipv4: esp4: use BUG_ON instead of if condition followed by BUG

2017-10-23 Thread Gustavo A. R. Silva
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 --- net/ipv4/esp4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index b00