c2port: class_create() returns an ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 5 Mar 2012 22:59:15 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 Mar 2012 23:49:43 +0000 (15:49 -0800)
commit22ea71d7f49c3115e3a9ced5eac109fef26d3559
tree9977b74794a61ebf90377cb650e8217d6aa8df53
parent7ad12566dc02ca76e0056af58606b5ce0181460f
c2port: class_create() returns an ERR_PTR

class_create() doesn't return a NULL, it only returns ERR_PTRs.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/c2port/core.c