Re: [PATCH] Remove useless assertions from reiserfs

From: Dave Jones
Date: Mon Aug 11 2003 - 13:55:49 EST


On Mon, Aug 11, 2003 at 08:33:13PM +0200, Petr Vandrovec wrote:

> I always thought that assertions are just for that - if you can hit them
> without some unexpected event/bug, you have a SERIOUS problem.

Not for when you explicitly code things above so it really cannot
happen. An assertion is more for the case "I really hope someone
doesn't pass me x in state y" type assertions than "I really hope
the compiler did the right thing with the previous loop"

Dave

--
Dave Jones http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/