From 65fafbe9bddf49d53a2bbae92498909e3c5f964b Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Thu, 14 Aug 2014 09:00:44 +0800 Subject: [PATCH] crypto: qat - Fix return value check in adf_chr_drv_create() 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 Signed-off-by: Herbert Xu --- Reading git-format-patch failed