[PATCH -next] phy: usb: sunplus: Fix return value check in update_disc_vol()

Vinod Koul vkoul at kernel.org
Tue Sep 13 08:28:43 PDT 2022


On 09-09-22, 09:47, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1 at huawei.com>
> 
> In case of error, the function nvmem_cell_read() returns ERR_PTR()
> and never returns NULL. The NULL test in the return value check
> should be replaced with IS_ERR().

Applied, thanks

-- 
~Vinod



More information about the linux-phy mailing list