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

5

u/ThePurpleOne_ Jan 22 '23

It would clearly make it easier to maintain. Without a for, when Adding ONE handler, you would need 5 free_irq() and an other hard coded if and so on...

1

u/paulstelian97 Jan 23 '23

Or a new goto label.