From: Dan Carpenter Date: Wed, 8 Apr 2009 22:44:04 +0000 (-0700) Subject: niu: Fix error handling X-Git-Tag: v2.6.30-rc2~109^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58f3e0a864c46dadbeadf682e6bbdcab14ba19d3;p=pandora-kernel.git niu: Fix error handling platform_device_register_simple() returns ERR_PTR(), not NULL, if an error occurs. Found by smatch (http://repo.or.cz/w/smatch.git). Compile tested. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed