Re: [PATCH] gma500: clean up error handling in init

2020-12-03 Thread Patrik Jakobsson
On Thu, Dec 3, 2020 at 9:41 AM Dan Carpenter wrote: > > The main problem with this error handling was that it didn't clean up if > i2c_add_numbered_adapter() failed. This code is pretty old, and doesn't > match with today's checkpatch.pl standards so I took the opportunity to > tidy it up a bit.

[PATCH] gma500: clean up error handling in init

2020-12-03 Thread Dan Carpenter
The main problem with this error handling was that it didn't clean up if i2c_add_numbered_adapter() failed. This code is pretty old, and doesn't match with today's checkpatch.pl standards so I took the opportunity to tidy it up a bit. I changed the NULL comparison, and removed the WARNING message