[PATCH 0/5] staging: ks7010: refactor, fix checkpatch

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

 



File ks_wlan_net.c emits various warnings/checks when parsed with
checkpatch. An inaccessible execution patch also exists within the
file, this was found while preparing for code cleanup.

Patch 01 removes the inaccessible execution path code.

Patch 02 moves a non-null pointer check to be before the pointer is
dereferenced.

Patch 03 removes multi-line dereference.

Patch 04 fixes parenthesis alignment

Patch 05 removes unnecessary 'else' statements.

Code is untested. Patch set builds on x86_64 and PowerPC.

Tobin C. Harding (5):
  staging: ks7010: remove unused execution path
  staging: ks7010: move null check before dereference
  staging: ks7010: fix parameter placement
  staging: ks7010: fix checkpatch PARENTHESIS_ALIGNMENT
  staging: ks7010: fix checkpatch UNNECESSARY_ELSE

 drivers/staging/ks7010/ks_wlan_net.c | 71 +++++++++++++++---------------------
 1 file changed, 29 insertions(+), 42 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