pps: class_create() returns an ERR_PTR, not NULL
authorDan Carpenter <[email protected]>
Mon, 5 Mar 2012 22:59:15 +0000 (14:59 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Rodolfo Giometti <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/pps/pps.c