[PATCH 2/3] Staging: ozwpan: reduce indent levels in oz_binding_add().

2014-01-25 Thread Salym Senyonga
When hit error then we can return immediately. This makes the code simpler and lets us remove some indenting. Signed-off-by: Salym Senyonga --- drivers/staging/ozwpan/ozproto.c | 44 ++--- 1 files changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers

[PATCH 3/3] Staging: ozwpan: Change kmalloc() to kzalloc()

2014-01-25 Thread Salym Senyonga
changing to kzalloc lets us get rid of some lines. The other concern here is that some members of binding->ptype are still uninitialized at the end of the function. Signed-off-by: Salym Senyonga --- drivers/staging/ozwpan/ozproto.c |6 +- 1 files changed, 1 insertions(+), 5 deleti

[PATCH 1/3] Staging: ozwpan: Fix null dereference

2014-01-25 Thread Salym Senyonga
If net_dev is NULL memcpy() will Oops. Signed-off-by: Salym Senyonga --- drivers/staging/ozwpan/ozproto.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index cb06036..5d965cf 100644 --- a/drivers

[PATCH 4/4] staging: lustre: libcfs_debug: small whitespace cleanups

2014-01-13 Thread Salym Senyonga
Just a few minor changes to make columns line up. Signed-off-by: Salym Senyonga --- .../lustre/include/linux/libcfs/libcfs_debug.h | 24 ++-- 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h b

[PATCH 2/4] staging: lustre: libcfs_debug.h: Align backslashes in macros

2014-01-13 Thread Salym Senyonga
Uniformly align backslashes to improve readability. Signed-off-by: Salym Senyonga --- .../lustre/include/linux/libcfs/libcfs_debug.h | 70 ++-- 1 files changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h b

[PATCH 3/4] staging: lustre: libcfs_debug.h: remove extra blank lines

2014-01-13 Thread Salym Senyonga
This patch removes consecutive blank lines. Signed-off-by: Salym Senyonga --- .../lustre/include/linux/libcfs/libcfs_debug.h |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h b/drivers/staging/lustre

[PATCH 1/4] staging: lustre: libcfs_debug.h: align define values

2014-01-13 Thread Salym Senyonga
Give all the constants a uniform alignment. Signed-off-by: Salym Senyonga --- .../lustre/include/linux/libcfs/libcfs_debug.h | 108 ++-- 1 files changed, 54 insertions(+), 54 deletions(-) diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h b/drivers