Re: [PATCH -next] media: i2c: ds90ub960: fix return value check in ub960_rxport_add_serializer()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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>




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux