On Mon, 2011-06-13 at 13:23 -0500, Greg Dietsche wrote:> Semantic patch to find code that matches this pattern:[]> diff --git a/scripts/coccinelle/misc/doublereturn.cocci b/scripts/coccinelle/misc/doublereturn.cocci[]> +-if (ret > operand) return ret;> +|> +-if (ret < operand) return ret;Maybe add <= and >=