[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gotos
>>>>> "Tim" == Tim Cambrant <tim@cambrant.com> writes:
Tim> Could someone please explain to me why we have a bunch
Tim> of gotos where they really could be removed? I'm sure
Tim> there is a good reason, but I simply don't see it. For
Tim> example, why shouldn't the following patch be applied?
Tim> I'd appreciate any explanation I could get. Thank you.
Because someone thought he's smarter than the compiler. Which may
have been true at the time. Nowdays it probably does not make any
difference -- the compiler would generate the same code in either
variant (though probably different on different architectures).
~velco
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/