[PATCH] staging: wlan-ng: Fix memset warning found by sparse

2015-06-18 Thread Bilel DRIRA
This patch fixes the following sparse warnings: drivers/staging/wlan-ng/prism2fw.c:251:15: warning: memset with byte count of 12 drivers/staging/wlan-ng/prism2fw.c:470:15: warning: memset with byte count of 12 Signed-off-by: Bilel DRIRA --- drivers/staging/wlan-ng/prism2fw.c |8

[PATCH] include/uapi/linux/swab.h: define a silent macro to avoid sparse error

2015-06-14 Thread Bilel DRIRA
identifier '__builtin_bswap64' include/uapi/linux/swab.h:71:33: error: not a function include/uapi/linux/swab.h:60:33: error: not a function Signed-off-by: Bilel DRIRA --- include/uapi/linux/swab.h | 12 1 file changed, 12 insertions(+) diff --git a/include/uapi/linux/s

[PATCH] staging: ft1000: fix braces warning

2015-02-03 Thread Bilel DRIRA
This patch fix checkpatch.pl WARNING: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Bilel DRIRA --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 73 +- 1 file changed, 29 insertions(+), 44 deletions(-) diff --git a/drivers/staging

[PATCH] staging: ft1000: fix braces warning

2015-02-03 Thread Bilel DRIRA
This patch fix the checkpatch.pl WARNING: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Bilel DRIRA --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 78 +- 1 file changed, 31 insertions(+), 47 deletions(-) diff --git a/drivers

[PATCH v2 ] staging: ft1000: fix else style error

2015-01-13 Thread Bilel DRIRA
This patch fix the checkpatch.pl error: ERROR: else should follow close brace '}' Signed-off-by: Bilel DRIRA --- v2: remove braces instead of just putting else after close brace. (suggested by Joe Perches). drivers/staging/ft1000/ft1000-pcmcia/ft1000_h

[PATCH] staging: ft1000: fix else style error

2015-01-13 Thread Bilel DRIRA
This patch fix the checkpatch.pl error: ERROR: else should follow close brace '}' Signed-off-by: Bilel DRIRA --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/staging/ft1000/ft1