Re:Sony publishes an official Linux driver for Playstation 5...
by Uptrenda on Friday December 25, 2020 @04:17AM
(#25535313)
I've seen the goto error-handling approach used now in SDKs written by developers from companies like Microsoft, Nvidia, and Nordic Semiconductor. It really does seem to be the best way to do it. And it's simple. Mess something up... goto cleanup... Seems fine to me!
Re:Sony publishes an official Linux driver for Playstation 5...
by centimeter on Saturday December 26, 2020 @04:44PM
(#25546674)
My comment has nothing to do with error handling. I was addressing a false claim about performance.
Everything else turns into an ugly, unreadable mess in functions that need to free resources or do some kind of cleanup.