crypto: qat - Fix return value check in adf_chr_drv_create()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 14 Aug 2014 01:00:44 +0000 (09:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Aug 2014 12:34:04 +0000 (20:34 +0800)
In case of error, the function device_create() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found