[PATCH] Staging: rtl8188eu: remove dead code

2015-03-20 Thread Matteo Semenzato
From: Matteo Semenzato The condition pxmitpriv->hwxmit_entry == 5 is always false because HWXMIT_ENTRY is always 4. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/driv

[PATCH] Staging: rtl8188eu fix buffer overflow

2015-03-20 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the buffer overflow caused by accessing index 4 of hwxmits. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b

[PATCH] Staging: rtl8712: fix potential null pointer dereference

2015-03-11 Thread Matteo Semenzato
From: Matteo Semenzato Check if kmalloc succeded before using the pointer in memcpy. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8712/rtl871x_mlme.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712

[PATCH] Staging: dgnc: fix bitmask

2015-03-09 Thread Matteo Semenzato
From: Matteo Semenzato The bitmask should be used on msignals since the signals variable is not used anywhere in the function. Signed-off-by: Matteo Semenzato --- drivers/staging/dgnc/dgnc_cls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc

[PATCH] Staging: comedi: fix information leak

2015-03-09 Thread Matteo Semenzato
From: Matteo Semenzato The comedi_cmd struct has an hole after chanlist_len that could contain uninitialized memory, this struct is copied to userspace. Signed-off-by: Matteo Semenato --- drivers/staging/comedi/comedi_fops.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH] Staging: dgnc: check kzalloc result

2015-03-08 Thread Matteo Semenzato
From: Matteo Semenzato Return -ENOMEM if allocating brd->flipbuf fails. Signed-off-by: Matteo Semenzato --- drivers/staging/dgnc/dgnc_driver.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index f177

[PATCH RESEND] Staging: rtl8188eu: fix double unlock

2015-03-07 Thread Matteo Semenzato
From: Matteo Semenzato The rtw_cmd_thread semaphore was being unlocked twice. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu

[PATCH 2/2] Staging: rtl8188eu: fix double unlock

2015-03-07 Thread Matteo Semenzato
From: Matteo Semenzato The rtw_cmd_thread semaphore was being unlocked twice. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu

[PATCH] Staging: rtl8192e: remove assignment of function parameter

2015-03-04 Thread Matteo Semenzato
From: Matteo Semenzato This patch removes the assignment of a function parameter that has no effect. Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8192e/rtllib_rx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e

[PATCH 4/4] Staging: rtl8188eu rtw_sta_mgt.c: fix coding style

2015-03-03 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c | 14 +++--- 1 file c

[PATCH 3/4] Staging: rtl8188eu rtw_mlme_ext.c: fix coding style

2015-03-03 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 40 +--

[PATCH 2/4] Staging: rtl8188eu rtw_mlme.c: fix coding style

2015-03-03 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 20 ++--

[PATCH 1/4] Staging: rtl8188eu rtw_ieee80211.c: fix coding style

2015-03-03 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_ieee80211.c | 8 1 file changed

[PATCH 0/4] Staging: rtl8188eu rtw_efuse.c: fix coding style

2015-03-03 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8

[PATCH V2] Staging: fbtft: fix whitespace errors

2015-03-02 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space required after that ',' ERROR: trailing whitespace ERROR: code indent should use tabs where possible V2: The patch should apply now Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_st77

[PATCH V2] Staging: fbtft: fix coding style errors

2015-03-02 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space required after that ';' V2: Indented and organized the init sequences. Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fbtft_device.c | 145 +++ 1 file changed, 111 inserti

[PATCH V2] Staging: fbtft: fix space prohibition

2015-03-02 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warnings: space prohibited before that close parenthesis ')' space prohibited after that open parenthesis '(' V2: The patch should apply now. Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft

[PATCH V2] Staging: dgnc: replace EXTRA_CFLAGS

2015-03-01 Thread Matteo Semenzato
From: Matteo Semenzato This patch removes EXTRA_CFLAGS from the Makefile and defines DDG_PART in dgnc_driver.h Signed-off-by: Matteo Semenzato --- drivers/staging/dgnc/Makefile | 2 -- drivers/staging/dgnc/dgnc_driver.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH] Staging: dgnc: replace EXTRA_CFLAGS

2015-03-01 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warning: Use of EXTRA_CFLAGS is deprecated, please use `ccflags-y instead. Signed-off-by: Matteo Semenzato --- drivers/staging/dgnc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/Makefile

[PATCH] Staging: dgnc: replace printk

2015-03-01 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warning: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: Matteo Semenzato --- drivers/staging/dgnc/dgnc_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH V2] Staging: fbtft: fix coding style errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space required after that ';' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fbtft_device.c | 145 +++ 1 file changed, 111 insertions(+), 34 deletions(-) diff --git a/drivers/sta

[PATCH V2] Staging: fbtft: fix space errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: spaces required around that '=' (ctx:VxV) space required after that ',' (ctx:VxV) space required after that ';' (ctx:VxV) Signed-off-by: Matteo Semenzato --- driver

[PATCH] Staging: fbtft: fix indent

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: code indent should use tabs where possible Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/flexfb.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fbtft/flexfb.c b/drivers

[PATCH] Staging: fbtft: fix space errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: spaces required around that '=' (ctx:VxV) space required after that ',' (ctx:VxV) space required after that ';' (ctx:VxV) Signed-off-by: Matteo Semenzato --- drive

[PATCH] Staging: fbtft: fix coding style errors

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space required after that ';' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fbtft_device.c | 68 ++-- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/drivers/sta

[PATCH] Staging: vt6655: fix C99 comments

2015-02-28 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warning: do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/vt6655/mac.c | 82 ++-- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/staging/vt6655

[PATCH] Staging: vt6655: replace C99 style comments

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: ERROR: do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/vt6655/key.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vt6655/key.h b/drivers/staging/vt6655/key.h index

[PATCH] Staging: vt6655: remove C99 style comments.

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: ERROR: do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/vt6655/device_main.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/staging

[PATCH] Staging: rtl8188eu: fix style errors

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: code indent should use tabs where possible ERROR: space prohibited before that Signed-off-by: Matteo Semenzato --- drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c | 4 ++-- drivers/staging/rtl8188eu/hal/odm.c

[PATCH] Staging: rtl8188eu: fix coding style errors

2015-02-27 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space prohibited before that ',' (ctx:WxW) ERROR: space prohibited before that ',' (ctx:WxW) ERROR: switch and case should be at the same indent Signed-off-by: Matteo Semenzato --- drivers/staging/rtl818

[PATCH] Staging: emxx_udc: fix warnings

2015-02-25 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warning: __aligned(size) is preferred over __attribute__((aligned(size))) Signed-off-by: Matteo Semenzato --- drivers/staging/emxx_udc/emxx_udc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/emxx_udc

[PATCH] Staging: fbtft remove C99 style comments

2015-02-24 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: Do not use C99 // comments Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_ssd1331.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/fbtft/fb_ssd1331

[PATCH] Staging: fbtft: fix style errors

2015-02-24 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: Code indent should use tabs where possible Space prohibited before that ',' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fbtft-core.c | 2 +- drivers/staging/fbtft/fbtft.h | 8 2 files

[PATCH] Staging: fbtft: fix style errors

2015-02-23 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space prohibited before that ',' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_ili9340.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/fbtft/fb_ili9340.c

[PATCH] Staging: fbtft: fix space errors

2015-02-23 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following error: space prohibited before that ',' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_ra8875.c | 150 +++--- 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/drive

Re: [PATCH] Staging: fbtft: fix whitespace errors

2015-02-22 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space required after that ',' ERROR: trailing whitespace Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_st7735r.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH] Staging: fbtft: fix whitespace errors

2015-02-22 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space required after that ',' ERROR: trailing whitespace Signed-off-by Matteo Semenzato --- drivers/staging/fbtft/fb_st7735r.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH] Staging: fbtft: fix space errors

2015-02-22 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following errors: ERROR: space required after that ',' ERROR: trailing whitespace Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_upd161704.c | 90 ++-- 1 file changed, 45 insertions(+), 45

Re: [PATCH] Staging: fbtft: fix space prohibition

2015-02-21 Thread Matteo Semenzato
From: Matteo Semenzato This patch fixes the following warnings: space prohibited before that close parenthesis ')' space prohibited after that open parenthesis '(' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_bd663474.c | 100 ++--

[PATCH] Staging: fbtft: fix space prohibition

2015-02-21 Thread Matteo Semenzato
From: Matt This patch fixes the following warnings: space prohibited before that close parenthesis ')' space prohibited after that open parenthesis '(' Signed-off-by: Matteo Semenzato --- drivers/staging/fbtft/fb_bd663474.c | 100 ++--