Return-path: Received: from mga01.intel.com ([192.55.52.88]:60464 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752576AbbDEXXN (ORCPT ); Sun, 5 Apr 2015 19:23:13 -0400 Date: Mon, 6 Apr 2015 01:23:09 +0200 From: Samuel Ortiz To: Julia Lawall Cc: Lauro Ramos Venancio , kernel-janitors@vger.kernel.org, Aloisio Almeida Jr , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 16/16] NFC: pn533: fix error return code Message-ID: <20150405232309.GC12567@ribalta.home> (sfid-20150406_012338_223830_5493E267) References: <1428235596-4757-1-git-send-email-Julia.Lawall@lip6.fr> <1428235596-4757-17-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1428235596-4757-17-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Julia, On Sun, Apr 05, 2015 at 02:06:36PM +0200, Julia Lawall wrote: > Return a negative error code on failure. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) > > // > @@ > identifier ret; expression e1,e2; > @@ > ( > if (\(ret < 0\|ret != 0\)) > { ... return ret; } > | > ret = 0 > ) > ... when != ret = e1 > when != &ret > *if(...) > { > ... when != ret = e2 > when forall > return ret; > } > // > > Signed-off-by: Julia Lawall > > --- > drivers/nfc/pn533.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks. Cheers, Samuel.