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

2017-10-24 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 23 Oct 2017 13:08:14 -0500 > 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 Applied.

[PATCH] ipv4: icmp: 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 icmp_timestamp. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- net/ipv4/icmp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ipv4/icmp.c