Re: [PATCH 4/7] fs/udf/truncate.c: Use BUG_ON

2008-02-17 Thread Marcin Slusarz
On Sun, Feb 17, 2008 at 06:56:18PM +0100, Julia Lawall wrote: > From: Julia Lawall <[EMAIL PROTECTED]> > > if (...) BUG(); should be replaced with BUG_ON(...) when the test has no > side-effects to allow a definition of BUG_ON that drops the code completely. The same change is in my patch which i

[PATCH 4/7] fs/udf/truncate.c: Use BUG_ON

2008-02-17 Thread Julia Lawall
From: Julia Lawall <[EMAIL PROTECTED]> if (...) BUG(); should be replaced with BUG_ON(...) when the test has no side-effects to allow a definition of BUG_ON that drops the code completely. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @ disab