[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1307990164.26699.11.camel@Joe-Laptop>
Date: Mon, 13 Jun 2011 11:36:04 -0700
From: Joe Perches <joe@...ches.com>
To: Greg Dietsche <Gregory.Dietsche@....edu>
Cc: julia@...u.dk, Gilles.Muller@...6.fr, npalix.work@...il.com,
cocci@...u.dk, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] coccinelle: if (ret) return ret; return ret;
semantic patch
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 >=
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists