Re: [PATCH 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-09-28 Thread Baolin Wang
Hi Stephen, On Sat, 28 Sep 2019 at 02:45, Stephen Boyd wrote: > > Quoting Baolin Wang (2019-09-26 20:50:53) > > The syscon_regmap_lookup_by_phandle() will never return NULL, thus use > > IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). > > > > Signed-off-by: Baolin Wang > >

Re: [PATCH 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-09-27 Thread Stephen Boyd
Quoting Baolin Wang (2019-09-26 20:50:53) > The syscon_regmap_lookup_by_phandle() will never return NULL, thus use > IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). > > Signed-off-by: Baolin Wang > --- > drivers/clk/sprd/common.c |2 +- > 1 file changed, 1 insertion(+), 1

[PATCH 1/2] clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle()

2019-09-26 Thread Baolin Wang
The syscon_regmap_lookup_by_phandle() will never return NULL, thus use IS_ERR() to validate the return value instead of IS_ERR_OR_NULL(). Signed-off-by: Baolin Wang --- drivers/clk/sprd/common.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sprd/common.c