On 2023/7/25 21:30, Andy Shevchenko wrote:
On Tue, Jul 25, 2023 at 08:15:07PM +0800, Yang Yingliang wrote:i2c_new_client_device() never returns NULL pointer, it will return ERR_PTR() when it fails, so replace the check with IS_ERR() and use PTR_ERR() as return code.Isn't the same fix to one that was in the mailing lists a few days ago?
Yes, it's same. This patch can be dropped. Thanks, Yang
Anyway, FWIW, Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>