Linus, if someone does go ahead and does this, I would suggest some
preprocessor trickery to allow us to compile a kernel with the
classical tests and without.
#ifdef DEBUGGING
#define SUPERFLUOUS_CHECK(x) if (x)
#else
#define SUPERFLUOUS_CHECK(x) if (0)
#endif
SUPERFLUOUS_CHECK (dentry != NULL) {
return -EBADF;
}
Personally I rather prefer having the checks performed instead of say
a 10% performance drop.
Roger.
-- | The secret of success is sincerity. Once you can | R.E.Wolff@BitWizard.nl | fake that, you've got it made. -- Jean Giraudoux | T: +31-15-2137555 -We write Linux device drivers for any device you may have! Call for a quote-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html