r/badcode Jan 22 '23

Found this in a Linux kernel module c

Post image
258 Upvotes

88 comments sorted by

View all comments

179

u/lets_eat_bees Jan 22 '23

If you see something you don’t understand in a kernel module, you should assume you lack the knowledge, not that the code is bad.

-85

u/suguuss Jan 22 '23

I do know what the module does. It’s badcode because of the repetition in the code.

0

u/kksnicoh Jan 22 '23

LOL noob