From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754291Ab1HBNzi (ORCPT ); Tue, 2 Aug 2011 09:55:38 -0400 Received: from mail.southpole.se ([193.12.106.18]:46776 "EHLO mail.southpole.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096Ab1HBNzd (ORCPT ); Tue, 2 Aug 2011 09:55:33 -0400 Subject: Re: [PATCH 10/11] arch/openrisc/mm/init.c: trivial: use BUG_ON From: Jonas Bonn To: Julia Lawall Cc: trivial@kernel.org, kernel-janitors@vger.kernel.org, Arnd Bergmann , linux@openrisc.net, linux-kernel@vger.kernel.org In-Reply-To: <1312281304-11847-11-git-send-email-julia@diku.dk> References: <1312281304-11847-1-git-send-email-julia@diku.dk> <1312281304-11847-11-git-send-email-julia@diku.dk> Content-Type: text/plain; charset="UTF-8" Organization: South Pole AB Date: Tue, 02 Aug 2011 15:55:44 +0200 Message-ID: <1312293344.4723.157.camel@crucifix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Assp-Client-SSL: yes Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-08-02 at 12:35 +0200, Julia Lawall wrote: > From: Julia Lawall > > Use BUG_ON(x) rather than if(x) BUG(); > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ identifier x; @@ > -if (x) BUG(); > +BUG_ON(x); > > @@ identifier x; @@ > -if (!x) BUG(); > +BUG_ON(!x); > // > > Signed-off-by: Julia Lawall > Will apply. Thanks. Best regards, Jonas