RE: [PATCH] i2c: mlxbf: Fix an error pointer vs NULL check

2020-12-04 Thread Khalil Blaiech
> In case of error, the function devm_ioremap() returns NULL pointer not > ERR_PTR(). The IS_ERR() test in the return value check should be > replaced with NULL test. > > Signed-off-by: Xu Wang Thank you very much for your patch. Please note that previous patch has been posted to address this

[PATCH] i2c: mlxbf: Fix an error pointer vs NULL check

2020-12-03 Thread Xu Wang
In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Xu Wang --- drivers/i2c/busses/i2c-mlxbf.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/d