]> git.baikalelectronics.ru Git - kernel.git/commit
tpm_crb: Use IOMEM_ERR_PTR when function returns iomem
authorTian Tao <tiantao6@hisilicon.com>
Thu, 29 Apr 2021 07:39:39 +0000 (15:39 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 23 Jun 2021 13:51:03 +0000 (16:51 +0300)
commitfc07b0b27ae5ed5102e7f7923e0a4b1df764c1b9
treee2ae672ceda3aaaf3ddc77adf2dc0ffa4be0b666
parentcb0d0b7d2fbd3b9696b5ac1a62a5df020b73e35b
tpm_crb: Use IOMEM_ERR_PTR when function returns iomem

This is to simplify the code, and IOMEM_ERR_PTR(err) is same with
(__force void __iomem *)ERR_PTR(err).

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_crb.c