[PATCH] Staging: wlan-ng: hfa384x_usb: Fix else is not useful warning

2015-01-08 Thread Sven Dziadek
This fixes the following checkpatch.pl warning: WARNING: else is not generally useful after a break or return Signed-off-by: Sven Dziadek --- drivers/staging/wlan-ng/hfa384x_usb.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c

[RFC PATCH] staging: rtl8723au: fix byte order problems

2016-01-04 Thread Sven Dziadek
: Sven Dziadek --- I was looking for some Sparse warnings that I could fix and found this: drivers/staging/rtl8723au//hal/rtl8723a_cmd.c:96:38: warning: cast to restricted __le16 drivers/staging/rtl8723au//hal/rtl8723a_cmd.c:100:27: warning: cast to restricted __le32 drivers/staging/rtl8723au//hal

[PATCH] Staging: wlan-ng: hfa384x: wrap long line

2015-03-19 Thread Sven Dziadek
This fixes the coding style issue "line over 80 characters" found by checkpatch.pl Signed-off-by: Sven Dziadek --- drivers/staging/wlan-ng/hfa384x.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa38

[PATCH] staging: lustre: llite: replace variable length array

2018-01-27 Thread Sven Dziadek
The functionality of the removed variable length array is already implemented by the function xattr_full_name in fs/xattr.c This fixes the sparse warning: warning: Variable length array is used. Signed-off-by: Sven Dziadek --- drivers/staging/lustre/lustre/llite/xattr.c | 12 1

Re: [PATCH] staging: lustre: llite: replace variable length array

2018-02-04 Thread Sven Dziadek
On 01/30/2018 03:04 AM, Dilger, Andreas wrote: > On Jan 27, 2018, at 14:42, Sven Dziadek wrote: >> >> The functionality of the removed variable length array is already >> implemented by the function xattr_full_name in fs/xattr.c >> >> This fixes the sparse war