I'm all for not pulling in useless broken code, but why the public rant?
I'm all for not pulling in useless broken code, but why the public rant?
The second part of cleverness is in fact even more damning than that. The conditional || mtu <= 7 is a siren's call for anyone looking for a cheap optimization. To someone not paying attention, this looks like it could be a nice patch -- take out an or that couldn't possibly be true under any circumstance, and save a few ops on every incoming packet. Bundle it in with other optimizations, and you've got an overflow just waiting to go off.
So no, it's not bikeshedding, it's being too clever for one's own good, and in one line adds a new function call that's just barely been proposed for a standardized version of C, and has a pair of logic errors to boot. In short, ticking off pretty much everything you don't want to do in a line of code.
Also it's cathartic.
I don't have much tolerance for Linus like behavior in places that I work day-to-day though, without a lot of protective social niceties.
David wrote about it here, https://signalvnoise.com/posts/1214-profanity-works
This is the Linux kernel, it runs the world.
http://lkml.iu.edu/hypermail/linux/kernel/1510.3/02919.html
I would imagine that if you're is being flamed by linus on lkml, it is most likely because you messed up big-time. Don't expect to be reprimanded with sugar coating. More so if you are an adult/mature/experienced (in terms of contributions) person who should've known better.
...anybody who thinks that the above is
(a) legible
(b) efficient (even with the magical compiler support)
(c) particularly safe
is just incompetent and out to lunch.I wasn't immediately sure if it's Linus doing the bike shedding- In fact it appears to me more like the PR is the culprit.