scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warning
if()/BUG conversion to BUG_ON must be avoided when there's side effect in condition. The reason being BUG_ON won't execute the condition when CONFIG_BUG is not defined. Inspired-by: NJ. Bruce Fields <bfields@fieldses.org> Suggested-by: NJulia Lawall <Julia.Lawall@lip6.fr> Acked-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NFabian Frederick <fabf@skynet.be> Signed-off-by: NMichal Marek <mmarek@suse.cz>
Showing
想要评论请 注册 或 登录