Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-28 Thread Tang Bin
Hi all: 在 2020/9/24 18:37, Felipe Balbi 写道: Thierry Reding writes: On Thu, Sep 24, 2020 at 10:26:15AM +0300, Felipe Balbi wrote: Tang Bin writes: Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to simplify code, avoid redundant judgements. Signed-off-by: Zhang Shengju Signed-off

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-24 Thread Felipe Balbi
Thierry Reding writes: > On Thu, Sep 24, 2020 at 10:26:15AM +0300, Felipe Balbi wrote: >> Tang Bin writes: >> >> > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to >> > simplify code, avoid redundant judgements. >> > >> > Signed-off-by: Zhang Shengju >> > Signed-off-by: Tang Bin >>

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-24 Thread Thierry Reding
On Thu, Sep 24, 2020 at 10:26:15AM +0300, Felipe Balbi wrote: > Tang Bin writes: > > > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to > > simplify code, avoid redundant judgements. > > > > Signed-off-by: Zhang Shengju > > Signed-off-by: Tang Bin > > Applied for next merge window. M

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-24 Thread Felipe Balbi
Tang Bin writes: > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to > simplify code, avoid redundant judgements. > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin Applied for next merge window. Make sure to get this driver out of drivers/usb/phy and moved into drivers/phy AS

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-11 Thread Sergei Shtylyov
Hello! On 10.09.2020 14:56, Tang Bin wrote: Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to simplify code, avoid redundant judgements. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- drivers/usb/phy/phy-tegra-usb.c | 25 ++--- 1 file changed, 10 ins

[PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-10 Thread Tang Bin
Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to simplify code, avoid redundant judgements. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- drivers/usb/phy/phy-tegra-usb.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers/