Use BUG_ON instead of if condition followed by BUG.
This issue was detected with the help of Coccinelle.
Signed-off-by: Zheng Yongjun <redacted>
---
net/xfrm/xfrm_policy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: Herbert Xu <herbert@gondor.apana.org.au> Date: 2021-06-07 09:04:52
On Mon, Jun 07, 2021 at 05:11:21PM +0800, Zheng Yongjun wrote:
quoted hunk
Use BUG_ON instead of if condition followed by BUG.
This issue was detected with the help of Coccinelle.
Signed-off-by: Zheng Yongjun <redacted>
---
net/xfrm/xfrm_policy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)