Am Sonntag, 12. Januar 2003 23:51 schrieb Rob Wilkens: > On Sun, 2003-01-12 at 17:43, Oliver Neukum wrote: > > It's code that causes added hardship for anybody checking the locking. > > I can certainly see where it would seem "easier" to match "one lock" to > "one unlock" if your troubleshooting a locking issue. > > "easier" is the motivation behind using goto.. Laziness.. that's all it > is. Yes, exactly. Lazyness is good. Any second spend on hitting Ctrl+F and typing in the name of a cleanup function is lost. Any time you overlook something because the cleanup and the code are not on the same screen is a bug that is overlooked. Any time one of the cleanup functions is overlooked can cause hours lost in debugging after a change. Oliver - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- Re: any chance of 2.6.0-test*?Linus Torvalds
- Re: any chance of 2.6.0-test*?Oliver Neukum
- Re: any chance of 2.6.0-test*?Rob Wilkens
- Prev by Date: Re: any chance of 2.6.0-test*?
- Next by Date: Re: any chance of 2.6.0-test*?
- Previous by thread: Re: any chance of 2.6.0-test*?
- Next by thread: Re: any chance of 2.6.0-test*?
- Indexes:[Main][Thread]