Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c5999f0d authored by Josh Triplett's avatar Josh Triplett Committed by Greg Kroah-Hartman
Browse files

USB: In init_endpoint_class, use PTR_ERR to obtain an errno value, not IS_ERR



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: default avatarJosh Triplett <josh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent df23fa01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment