Skip to contentSkip to conversation

class_register() always returns 0

PATCH Greg KH 1 participant 1 message Mar 11, 2004 Kernel janitors

lore
Share & tools
lore

Greg KH

author
#0 lore raw
Quoted 6 lines · Leann Ogasawara

Hi All,

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,

Looks good, applied, thanks.

greg k-h
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors