USB: In init_endpoint_class, use PTR_ERR to obtain an errno value, not IS_ERR
authorJosh Triplett <josh@freedesktop.org>
Thu, 25 Jan 2007 09:32:34 +0000 (01:32 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:32:17 +0000 (15:32 -0800)
init_endpoint_class calls class_create, and checks the result for an error
with IS_ERR; however, if true, it then returns the result of IS_ERR (a
boolean) rather than PTR_ERR (the actual errno).

Signed-off-by: Josh Triplett <josh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found