From: David Miller Subject: Re: [PATCH 7/15] drivers/crypto/atmel-aes.c: adjust duplicate test Date: Mon, 21 Jan 2013 13:19:12 -0500 (EST) Message-ID: <20130121.131912.602907116084738120.davem@davemloft.net> References: <1358773378-4700-1-git-send-email-Julia.Lawall@lip6.fr> <1358773378-4700-8-git-send-email-Julia.Lawall@lip6.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: herbert@gondor.apana.org.au, kernel-janitors@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org To: Julia.Lawall@lip6.fr Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:40639 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196Ab3AUSTO (ORCPT ); Mon, 21 Jan 2013 13:19:14 -0500 In-Reply-To: <1358773378-4700-8-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-crypto-owner@vger.kernel.org List-ID: From: Julia Lawall Date: Mon, 21 Jan 2013 14:02:51 +0100 > From: Julia Lawall > > Delete successive tests to the same location. The code tested the result > of a previous allocation, that itself was already tested. It is changed to > test the result of the most recent allocation. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) ... > Signed-off-by: Julia Lawall Acked-by: David S. Miller