From: Wei Yongjun Date: Tue, 7 Jan 2014 08:56:35 +0000 (+0800) Subject: misc: genwqe: fix return value check in genwqe_device_create() X-Git-Tag: v3.14-rc1~152^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634608f27acd098b245ca6fe60e06701185eb170;p=pandora-kernel.git misc: genwqe: fix return value check in genwqe_device_create() In case of error, the function device_create_with_groups() 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 Acked-by: Frank Haverkamp Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed