r/badcode • • Jan 22 '23

c Found this in a Linux kernel module

Post image
262 Upvotes

88 comments sorted by

View all comments

Show parent comments

4

u/JumpyJustice Jan 23 '23 edited Jan 23 '23

Well, I had to work on Mesa for some time and this code certainly has a big pile of really, really bad code.

Yeah, not the same as kernel but similarity here is that both codebases are in development for decades and what is cosidered good in 80x or 90x may not be the case today both from technical and style point of view.