[PATCH 0/3] Introducing goto for error and lock handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The first patch fix a missing call to dgnc_tty_uninit.

The other two patches focus on the TODO item:
use goto statements for error handling when appropriate

The second patch resolves cases where the improvement seems
clear.

The third patch deals with cases where the added value did
not seem as important or the changes felt more complex.

Quentin Lambert (3):
  Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit
  Staging: dgnc: Use goto for error handling
  Staging: dgnc: Use goto for spinlock release before return

 drivers/staging/dgnc/dgnc_cls.c    | 19 ++++++---------
 drivers/staging/dgnc/dgnc_driver.c | 13 +++--------
 drivers/staging/dgnc/dgnc_neo.c    | 30 ++++++++++--------------
 drivers/staging/dgnc/dgnc_tty.c    | 48 ++++++++++++++++++--------------------
 4 files changed, 45 insertions(+), 65 deletions(-)

-- 
1.9.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux