i2c: mlxbf: Fix the return check of devm_ioremap and ioremap
authorWang Xiaojun <wangxiaojun11@huawei.com>
Thu, 3 Dec 2020 01:46:47 +0000 (20:46 -0500)
committerWolfram Sang <wsa@kernel.org>
Sat, 5 Dec 2020 13:52:35 +0000 (14:52 +0100)
commit2bf9545626f8d09f552ab86d0047a415fe9a07a0
treeeb881f4c4b3d02dbc9c537308f562ee2bb4884b1
parentc62dac0a35bb6d351cd568e97090c5fd3e7aa532
i2c: mlxbf: Fix the return check of devm_ioremap and ioremap

devm_ioremap and ioremap may return NULL which cannot be checked
by IS_ERR.

Signed-off-by: Wang Xiaojun <wangxiaojun11@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Khalil Blaiech <kblaiech@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mlxbf.c