]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf250a1d863b07a478919411b49179a879cdd81d0
treeeb881f4c4b3d02dbc9c537308f562ee2bb4884b1
parentbffb6cdcd065f8cc6fcf55b31ba8f73fcb784378
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