Fix coding style issues
v3 cover Fix coding style issues
This patchset fixes the following coding style issues found by checkpatch.pl:
- Line over 80 charachters.
- Trailing statement should be on next line.
- Extern should be avoided in .c files.
- Else is not useful after return.
- Strings are generally beter as one
Changes in v3:
- Split [PATCH 4/5] and return one removal of else to original, for it produces compilation warning: mixed declaration and code. better resolve in separate patch.
- Edit subject line appropriately
Changes in v2:
- Edit subject line.
Haneen Mohammed (5):
Staging: lustre: Fix line over 80 characters
Staging: lustre: Move trailing statement to next line
Staging: lustre: Fix externs should be avoided in .c
Staging: lustre: Remove unnecessary else after return
Staging: lustre: Concatenate strings into single string
drivers/staging/lustre/lustre/ldlm/interval_tree.c | 9 ++-- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 3 +- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c | 3 +- drivers/staging/lustre/lustre/ldlm/ldlm_internal.h | 2 + drivers/staging/lustre/lustre/ldlm/ldlm_lib.c | 4 +- drivers/staging/lustre/lustre/ldlm/ldlm_lock.c | 56 ++++++++++++++-------- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 12 +++-- drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 20 ++++---- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 12 +++-- 9 files changed, 76 insertions(+), 45 deletions(-)
Signature · 1 line
1.9.1