pps: class_create() returns an ERR_PTR, not NULL
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)
commit7ad12566dc02ca76e0056af58606b5ce0181460f
treef07dd27adb38a8fe266ea1ea144c8607a679583a
parent6027ce497d44dd8eae1a9215789df178f6b422cc
pps: class_create() returns an ERR_PTR, not NULL

class_create() never returns NULLs only ERR_PTRs.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pps/pps.c