Patch 1 is fixes a "clean-up on error" bug when initializing the comedi
module.

Patch 2 uses the power of "goto" to simplify the clean-up code.

1) staging: comedi: fix clean-up of comedi_class in comedi_init()
2) staging: comedi: use centralized error clean-up in comedi_init()

 drivers/staging/comedi/comedi_fops.c | 42 +++++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 20 deletions(-)
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to