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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo