Re: input: touchscreen: mxs-lradc: use correct error check

2017-08-14 Thread Dmitry Torokhov
On Tue, Aug 08, 2017 at 09:00:37PM +0800, Pan Bian wrote: > Function devm_ioremap() will return a NULL pointer on failure. However, > in function mxs_lradc_ts_probe(), its return value is checked with > IS_ERR(), which cannot detect the exceptional case. > > Signed-off-by: Pan Bian Applied, than

input: touchscreen: mxs-lradc: use correct error check

2017-08-08 Thread Pan Bian
Function devm_ioremap() will return a NULL pointer on failure. However, in function mxs_lradc_ts_probe(), its return value is checked with IS_ERR(), which cannot detect the exceptional case. Signed-off-by: Pan Bian --- drivers/input/touchscreen/mxs-lradc-ts.c | 4 ++-- 1 file changed, 2 insertio