Re: [PATCH] af_key: make use of BUG_ON macro

From: David Miller
Date: Sun Jun 09 2019 - 23:01:17 EST


From: Hariprasad Kelam <hariprasad.kelam@xxxxxxxxx>
Date: Sat, 8 Jun 2019 14:30:50 +0530

> fix below warnings reported by coccicheck
>
> net/key/af_key.c:932:2-5: WARNING: Use BUG_ON instead of if condition
> followed by BUG.
> net/key/af_key.c:948:2-5: WARNING: Use BUG_ON instead of if condition
> followed by BUG.
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@xxxxxxxxx>

Applied to net-next.