Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c5999f0da73b7f46435a67671c8861ed14a94c4e
Commit:     c5999f0da73b7f46435a67671c8861ed14a94c4e
Parent:     df23fa01acc77444453633e1dec59cd7a4ea8ec3
Author:     Josh Triplett <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 25 01:32:34 2007 -0800
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Feb 16 15:32:17 2007 -0800

    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: Josh Triplett <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
---
 drivers/usb/core/endpoint.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/core/endpoint.c b/drivers/usb/core/endpoint.c
index 5e628ae..e0ec704 100644
--- a/drivers/usb/core/endpoint.c
+++ b/drivers/usb/core/endpoint.c
@@ -229,7 +229,7 @@ static int init_endpoint_class(void)
        kref_init(&ep_class->kref);
        ep_class->class = class_create(THIS_MODULE, "usb_endpoint");
        if (IS_ERR(ep_class->class)) {
-               result = IS_ERR(ep_class->class);
+               result = PTR_ERR(ep_class->class);
                goto class_create_error;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to