From: Wei Yongjun Date: Thu, 14 Aug 2014 01:00:44 +0000 (+0800) Subject: crypto: qat - Fix return value check in adf_chr_drv_create() X-Git-Tag: fixes-for-v3.18-merge-window~17^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65fafbe9bddf49d53a2bbae92498909e3c5f964b;p=pandora-kernel.git 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-diff-tree failed