From: Wei Yongjun Date: Sun, 2 Dec 2012 10:10:44 +0000 (-0500) Subject: tty: serial: vt8500: fix return value check in vt8500_serial_probe() X-Git-Tag: v3.8-rc5~38^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6dd114e16cbc4410049a90a8a67b967333d108d;p=pandora-kernel.git tty: serial: vt8500: fix return value check in vt8500_serial_probe() In case of error, function of_clk_get() 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: Tony Prisk Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed