[PATCH v3] staging: rtl8192u: ieee80211: replace kmalloc/memset with kzalloc

2020-10-25 Thread Elena Afanasova
Replace kmalloc + memset 0 by a call to kzalloc which zeroes memory too. Found with Coccinelle. Signed-off-by: Elena Afanasova --- Changes in v3: - use array_size() Changes in v2: - correct the subject line - correct the commit message drivers/staging/rtl8192u/ieee80211

[PATCH v2] staging: rtl8192e: replace kmalloc/memset with kzalloc

2020-10-23 Thread Elena Afanasova
Replace kmalloc + memset 0 by a call to kzalloc which zeroes memory too. Found with Coccinelle. Signed-off-by: Elena Afanasova --- Changes in v2: - correct the subject line - correct the commit message drivers/staging/rtl8192e/rtllib_tx.c | 4 +--- 1 file changed, 1 insertion

[PATCH v2] staging: rtl8192u: ieee80211: replace kmalloc/memset with kzalloc

2020-10-23 Thread Elena Afanasova
Replace kmalloc + memset 0 by a call to kzalloc which zeroes memory too. Found with Coccinelle. Signed-off-by: Elena Afanasova --- Changes in v2: - correct the subject line - correct the commit message drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 5 + 1 file changed

[PATCH v2] staging : rtl8712: correct the code style for comparison to NULL

2020-10-23 Thread Elena Afanasova
The coding style (!bar) is more common than (bar == NULL). Reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- Changes in v2: - correct the subject line - correct the commit message drivers/staging/rtl8712/rtl871x_recv.h | 10 +- 1 file changed, 5 insertions

[PATCH] staging/rtl8712: replace (precvframe == NULL) with (!precvframe)

2020-10-23 Thread Elena Afanasova
Correct the code style for comparison to NULL. Reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- drivers/staging/rtl8712/rtl871x_recv.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_recv.h b/drivers/staging/rtl8712

[PATCH] staging/rtl8192u/ieee80211: replace kmalloc with kzalloc

2020-10-23 Thread Elena Afanasova
kmalloc() and memset() calls can be replaced with kzalloc(). Found with Coccinelle. Signed-off-by: Elena Afanasova --- drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b

[PATCH] staging/rtl8192e: replace kmalloc with kzalloc

2020-10-23 Thread Elena Afanasova
kmalloc() and memset() calls can be replaced with kzalloc(). Found with Coccinelle. Signed-off-by: Elena Afanasova --- drivers/staging/rtl8192e/rtllib_tx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_tx.c b/drivers/staging/rtl8192e

[PATCH] staging/rtl8723bs: replace "foo * bar" with "foo *bar"

2020-10-22 Thread Elena Afanasova
Correct the coding style error reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- drivers/staging/rtl8723bs/include/rtw_mlme.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme.h b/drivers/staging/rtl8723bs/include

[PATCH] staging/rtl8192u/ieee80211: remove debugging line

2020-10-22 Thread Elena Afanasova
Remove unnecessary debug line from rtl8192u_dot11d_init(). Signed-off-by: Elena Afanasova --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/dot11d.c b/drivers/staging/rtl8192u/ieee80211/dot11d.c index

[PATCH 3/3] staging/rtl8712: use BIT macro

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl Signed-off-by: Elena Afanasova --- drivers/staging/rtl8712/rtl871x_recv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/rtl871x_recv.h b/drivers/staging/rtl8712/rtl871x_recv.h index d03859ca1697..2ed2d3edb312 100644 --- a

[PATCH 2/3] staging/rtl8712: fix code style for comparison to NULL

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl Signed-off-by: Elena Afanasova --- drivers/staging/rtl8712/rtl871x_recv.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_recv.h b/drivers/staging/rtl8712/rtl871x_recv.h index 57a965b9839b..d03859ca1697

[PATCH 1/3] staging/rtl8712: remove extra blank lines; fix code alignment

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl Signed-off-by: Elena Afanasova --- drivers/staging/rtl8712/rtl871x_recv.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_recv.h b/drivers/staging/rtl8712/rtl871x_recv.h index e83c256e1474..57a965b9839b 100644

Re: [PATCH] staging/rtl8192u/ieee80211: use __func__ macro

2020-10-20 Thread Elena Afanasova
On Tue, 2020-10-20 at 17:19 +0200, Greg KH wrote: > On Tue, Oct 20, 2020 at 08:08:23AM -0700, Elena Afanasova wrote: > > Replace function names with __func__ macro. > > Remove unnecessary characters in error messages. > > Reported by checkpatch.pl. > > > &g

[PATCH] staging/rtl8188eu: fix line length exceeds 100 columns

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl Signed-off-by: Elena Afanasova --- drivers/staging/rtl8188eu/core/rtw_xmit.c | 118 +++--- 1 file changed, 81 insertions(+), 37 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c index

[PATCH] staging/rtl8192u/ieee80211: fix line length exceeds 100 columns

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- drivers/staging/rtl8192u/ieee80211/dot11d.h | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/dot11d.h b/drivers/staging/rtl8192u/ieee80211/dot11d.h index

[PATCH] staging/rtl8192u/ieee80211: use __func__ macro

2020-10-20 Thread Elena Afanasova
Replace function names with __func__ macro. Remove unnecessary characters in error messages. Reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging

[PATCH] staging/qlge: fix typo

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- drivers/staging/qlge/qlge_mpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_mpi.c b/drivers/staging/qlge/qlge_mpi.c index 143a886080c5..2ff3db2661a9 100644 --- a/drivers/staging/qlge

[PATCH] staging/qlge: add blank line after declaration

2020-10-20 Thread Elena Afanasova
Reported by checkpatch.pl. Signed-off-by: Elena Afanasova --- drivers/staging/qlge/qlge_ethtool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/qlge/qlge_ethtool.c b/drivers/staging/qlge/qlge_ethtool.c index d44b2dae9213..a28f0254cf60 100644 --- a/drivers/staging/qlge