Commit dc377e01 authored by Sun Ke's avatar Sun Ke Committed by Herbert Xu
Browse files

crypto: aspeed - fix return value check in aspeed_hace_probe()

In case of error, the function devm_ioremap_resource() returns
ERR_PTR() not NULL. The NULL test in the return value check must be
replaced with IS_ERR().

Fixes: 108713a7

 ("crypto: aspeed - Add HACE hash driver")
Signed-off-by: default avatarSun Ke <sunke32@huawei.com>
Reviewed-by: default avatarNeal <Liu&lt;neal_liu@aspeedtech.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent efc96d43
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment