[PATCH 0/3] staging: dgnc: cleanup return statements

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

 



Previous work was done auditing return statements and use of goto
statements in drivers/staging/dgnc however some mistakes were
made. Review picked up the mistakes but due to developer omission
patch set was merged.

Make changes do dgnc inline with previous review suggestions.

Patch 01 change return statements to return error code directly.

Patch 02 fix checkpatch whitespace CHECK and make dgnc return
statements uniform.

Patch 03 remove unnecessary return value cast.

Series has not been tested. staging-next branch with series applied
has been checked with Smatch, checkpatch --strict, and Sparse. Series
does not introduce any new warnings/errors. Each patch in series has
been applied and built on x86_64 and on PowerPC.

Tobin C. Harding (3):
  staging: dgnc: return error code directly
  staging: dgnc: fix whitespace before return
  staging: dgnc: remove explicit cast

 drivers/staging/dgnc/dgnc_driver.c |  6 ++-
 drivers/staging/dgnc/dgnc_mgmt.c   |  3 +-
 drivers/staging/dgnc/dgnc_tty.c    | 79 +++++++++++++++++++-------------------
 3 files changed, 47 insertions(+), 41 deletions(-)

-- 
2.7.4

_______________________________________________
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