diff options
author | YueHaibing <yuehaibing@huawei.com> | 2022-09-20 06:21:18 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-09-30 08:57:50 +0300 |
commit | 70513e1d65599f39aba4fa6594546f7c81fa59f4 (patch) | |
tree | 2f4d1f524cc66d2c5498ccc5908ec846e9e78be3 /drivers/iommu/io-pgfault.c | |
parent | 4a209078656c3ada49c81d69c4b556be2dda1310 (diff) | |
download | linux-70513e1d65599f39aba4fa6594546f7c81fa59f4.tar.xz |
crypto: aspeed - Fix check for platform_get_irq() errors
The platform_get_irq() function returns negative on error and
positive non-zero values on success. It never returns zero, but if it
did then treat that as a success.
Also remove redundant dev_err() print as platform_get_irq() already
prints an error.
Fixes: 108713a713c7 ("crypto: aspeed - Add HACE hash driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Neal Liu <neal_liu@aspeedtech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/iommu/io-pgfault.c')
0 files changed, 0 insertions, 0 deletions