• Leann Ogasawara's avatar
    [PATCH] Fix class_register() always returns 0 · bd37147c
    Leann Ogasawara authored
    I noticed that the class_register() function in drivers/base/class.c
    always returns 0 and thus will never fail.  Patch below inserts simple
    error checking to return any errors if they occur.  Feedback welcome.
    Thanks,
    bd37147c
class.c 11 KB