From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sabertooth01.qualcomm.com ([65.197.215.72]:18435 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075Ab2KPLkA (ORCPT ); Fri, 16 Nov 2012 06:40:00 -0500 Message-ID: <50A62607.4060900@qca.qualcomm.com> (sfid-20121116_124006_872076_BCDE526E) Date: Fri, 16 Nov 2012 13:39:51 +0200 From: Kalle Valo MIME-Version: 1.0 To: Julia Lawall CC: , "John W. Linville" , , , Subject: Re: [PATCH 8/8] drivers/net/wireless/ath/ath6kl/hif.c: drop if around WARN_ON References: <1351974625-10282-1-git-send-email-Julia.Lawall@lip6.fr> <1351974625-10282-9-git-send-email-Julia.Lawall@lip6.fr> In-Reply-To: <1351974625-10282-9-git-send-email-Julia.Lawall@lip6.fr> Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-wireless-owner@vger.kernel.org List-ID: On 11/03/2012 10:30 PM, Julia Lawall wrote: > From: Julia Lawall > > Just use WARN_ON rather than an if containing only WARN_ON(1). > > A simplified version of the semantic patch that makes this transformation > is as follows: (http://coccinelle.lip6.fr/) > > // > @@ > expression e; > @@ > - if (e) WARN_ON(1); > + WARN_ON(e); > // > > Signed-off-by: Julia Lawall Thanks, applied to ath6kl.git. Kalle