[PATCH] Staging: rtl8192u: use %s and __func__

2021-01-24 Thread Puranjay Mohan
Change function's name to %s and __func__ to fix checkpatch.pl errors. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/r8190_rtl8256.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl

[PATCH] Staging: rtl8723bs: os_dep: Fix switch-case indentation error

2019-05-03 Thread Puranjay Mohan
Fix indentation for switch-case statements to fix following checkpatch.pl Error: ERROR: switch and case should be at the same indent Signed-off-by: Puranjay Mohan --- .../staging/rtl8723bs/os_dep/ioctl_linux.c| 442 +- 1 file changed, 221 insertions(+), 221 deletions

[PATCH] Staging: rtl8723bs: core: Fix Spelling mistake in comments

2019-05-04 Thread Puranjay Mohan
Change spelling of 'associcated' to 'associated', to fix the spelling mistake. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8723bs/core/rtw_ap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drive

[PATCH] Staging: rtl8723bs: os_dep: Remove braces from single if statement

2019-05-07 Thread Puranjay Mohan
Remove braces from single if statement to solve style issue found using checkpatch,pl Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers

[PATCH 1/5] Staging: rtl8192u: ieee80211: Fix coding style warning

2019-05-13 Thread Puranjay Mohan
Remove braces around a single if statement to fix following checkpatch.pl warning. WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 2/5] Staging: rtl8192u: ieee80211: Fix spelling mistake

2019-05-13 Thread Puranjay Mohan
Correct spelling mistakes at two places in comments. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u

[PATCH 3/5] Staging: rtl8192u: ieee80211: Fix coding style errors

2019-05-13 Thread Puranjay Mohan
Fix coding style errors related to braces for if-else statements. Signed-off-by: Puranjay Mohan --- .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 60 +++ 1 file changed, 22 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b

[PATCH 4/5] Staging: rtl8192u: ieee80211: Add spaces around '&&' operator

2019-05-13 Thread Puranjay Mohan
Fix coding style errors by adding spaces around '&&' operators. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee802

[PATCH 5/5] Staging: rtl8192u: ieee80211: Use !x in place of NULL comparison

2019-05-13 Thread Puranjay Mohan
Fix comparison to NULL, chang to !x operation. Issue found using checkpatch.pl Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH] Staging: rtl8723bs: os_dep: Fix if-else coding style issues

2019-05-13 Thread Puranjay Mohan
Fix placement of opening brace in if-else statement to correct coding style issue. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b

[PATCH V2 1/5] Staging: rtl8192u: ieee80211: Fix coding style warning

2019-05-14 Thread Puranjay Mohan
Remove braces around a single if statement to fix following checkpatch.pl warning. WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Puranjay Mohan --- V2 - remove extra blank line before the closing brace. drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 3

[PATCH V2 3/5] Staging: rtl8192u: ieee80211: Fix coding style errors

2019-05-14 Thread Puranjay Mohan
Fix coding style errors related to braces for if-else statements. Signed-off-by: Puranjay Mohan --- V2 - Remove extra blank lines. .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 58 +++ 1 file changed, 20 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH V2 5/5] Staging: rtl8192u: ieee80211: Use !x in place of NULL comparison

2019-05-14 Thread Puranjay Mohan
Fix comparison to NULL, chang to !x operation. Issue found using checkpatch.pl Signed-off-by: Puranjay Mohan --- V2 - Remove extra parentheses around *crypt drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

Re: [PATCH V2 1/5] Staging: rtl8192u: ieee80211: Fix coding style warning

2019-05-14 Thread Puranjay Mohan
On Tue, May 14, 2019 at 04:09:05PM +0200, Greg KH wrote: > On Tue, May 14, 2019 at 02:42:31PM +0530, Puranjay Mohan wrote: > > Remove braces around a single if statement to fix following > > checkpatch.pl warning. > > WARNING: braces {} are not necessary for single statement b

[PATCH v2 1/5] Staging: rtl8192u: ieee80211: Fix coding style warning

2019-05-14 Thread Puranjay Mohan
Remove braces around a single if statement to fix following checkpatch.pl warning. WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH v2 3/5] Staging: rtl8192u: ieee80211: Fix coding style errors

2019-05-14 Thread Puranjay Mohan
Fix coding style errors related to braces for if-else statements. Signed-off-by: Puranjay Mohan --- .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 58 +++ 1 file changed, 20 insertions(+), 38 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b

[PATCH v2 5/5] Staging: rtl8192u: ieee80211: Use !x in place of NULL comparison

2019-05-14 Thread Puranjay Mohan
Fix comparison to NULL, chang to !x operation. Issue found using checkpatch.pl Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH v2 4/5] Staging: rtl8192u: ieee80211: Add spaces around '&&' operator

2019-05-14 Thread Puranjay Mohan
Fix coding style errors by adding spaces around '&&' operators. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee802

[PATCH v2 2/5] Staging: rtl8192u: ieee80211: Fix spelling mistake

2019-05-14 Thread Puranjay Mohan
Correct spelling mistakes at two places in comments. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u

[PATCH v2 0/5] Fix checkpatch errors and warnings

2019-05-14 Thread Puranjay Mohan
This series fix the following errors/warnings: -Correct spelling mistakes. -Replace NULL comparison. -Add space around operators. -Remove braces from single if statement. Puranjay Mohan (5): Staging: rtl8192u: ieee80211: Fix coding style warning Staging: rtl8192u: ieee80211: Fix spelling

[PATCH] Staging: rtl8192e: Use %s and __func__ in strings

2019-05-14 Thread Puranjay Mohan
quot;, __func__' to using 'rtl92e_dm_restore_state', this function's name, in a string Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl

[PATCH] Staging: kpc2000: kpc_dma: include instead of

2019-05-15 Thread Puranjay Mohan
Fix following checkpatch.pl warning by including instead of . WARNING: Use #include instead of Signed-off-by: Puranjay Mohan --- drivers/staging/kpc2000/kpc_dma/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc_dma/dma.c b/drivers/staging

[PATCH] Staging: rtl8188eu: os_dep: Use %s and __func__ in strings

2019-05-15 Thread Puranjay Mohan
Fix following checkpatch.pl warnings by using %s and __func__ in strings instead of function names. WARNING: Prefer using '"%s...", __func__' to using 'rtw_report_sec_ie', this function's name, in a string and other similar warning. Signed-off-by: Puranjay Mo

[PATCH] Staging: rtl8192u: ieee80211: Fix coding style issues related to if else

2019-05-15 Thread Puranjay Mohan
Fix positions of braces for if-else statements. Signed-off-by: Puranjay Mohan --- .../staging/rtl8192u/ieee80211/ieee80211_wx.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8192u

[PATCH] Staging: rtl8723bs: hal: Fix comparison to bool in if statements

2019-05-16 Thread Puranjay Mohan
Fix following warnings reported by coccicheck: WARNING: Comparison to bool by using !x in place of (x == false) and x in place of (x == true). Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8723bs/hal/HalHWImg8723B_BB.c | 4 ++-- drivers/staging/rtl8723bs/hal/HalHWImg8723B_MAC.c | 2

[PATCH] Staging: rtl8192u: ieee80211: Use !x in place of NULL comparisons

2019-05-17 Thread Puranjay Mohan
Fix the following checkpatch.pl warning : CHECK: Comparison to NULL could be written "!x" by changing (x == NULL) to !x and (x != NULL) to x. Signed-off-by: Puranjay Mohan --- .../rtl8192u/ieee80211/ieee80211_module.c | 2 +- .../staging/rtl8192u/ieee80211/ieee80211

[PATCH] Staging: rtl8723bs: os_dep: Remove unneeded variable for return

2019-05-17 Thread Puranjay Mohan
Remove unneeded variable "ret" and directly return 0 in functions. Fix following coccicheck warning: Unneeded variable: "ret". Return "0". Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 9 +++-- 1 file changed, 3 inser

[PATCH] Staging: mt7621-dma: Remove braces around single if statement

2019-05-19 Thread Puranjay Mohan
Fix following checkpatch.pl warning by removing unnecessary braces: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Puranjay Mohan --- drivers/staging/mt7621-dma/mtk-hsdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH] Staging: rtl8188eu: core: Remove else after break

2019-05-20 Thread Puranjay Mohan
Remove else after break statements to fix following checkpatch.pl warnings: WARNING: else is not generally useful after a break or return. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 26 +++ 1 file changed, 12 insertions(+), 14 deletions

[PATCH] Staging: rtl8192u: ieee80211: Fix if-else coding style issue

2019-05-20 Thread Puranjay Mohan
Fix following checkpatch.pl warning by adding braces around if statement: CHECK: braces {} should be used on all arms of this statement Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] Staging: rtl8723bs: os_dep: Remove functions that don't do anything.

2019-05-21 Thread Puranjay Mohan
Remove functions which just print the name of function and return 0, These functions fake the network core to say that they support these options. Signed-off-by: Puranjay Mohan --- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 28 +-- 1 file changed, 1 insertion(+), 27

[PATCH] Staging: rtl8192u: ieee80211: Replace function names in strings with "%s", __func__

2019-05-21 Thread Puranjay Mohan
Use "%s", __func__ in place of strings which contain function names. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_T

[PATCH] Staging: rtl8188eu: os_dep: Replace comparison with zero to !x

2019-05-21 Thread Puranjay Mohan
Change comparison to zero to !x. Replace (x == 0) to !x. Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8188eu/os_dep/rtw_android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/rtw_android.c b/drivers/staging/rtl8188eu/os_dep

[PATCH] Staging: rtl8188eu: core: Use !x in place of NULL comparisons

2019-05-21 Thread Puranjay Mohan
Change (x == NULL) to !x and (x != NULL) to x, to fix following checkpatch.pl warnings: CHECK: Comparison to NULL could be written "!x". Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8188eu/core/rtw_recv.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) di

[PATCH] Staging: rtl8723bs: os_dep: Remove functions that don't perform any task

2019-05-22 Thread Puranjay Mohan
Remove functions which return 0 without performing any task. Fix following warnings issued by coccicheck: Unneeded variable: "err". Return "0" on line 4484 and similar other warnings. Signed-off-by: Puranjay Mohan --- .../staging/rtl8723bs/os_dep/ioctl_linux.c| 41 --

[PATCH] Drivers: rtl8188eu: core: Fix coding style issue

2020-07-01 Thread Puranjay Mohan
Use %s and __func__ in place of function names. This solves following checkpatch.pl warning WARNING: Prefer using '"%s...", __func__' to using 'rtw_do_join', this function's name, in a string Signed-off-by: Puranjay Mohan --- drivers/staging/rtl8188eu/

[PATCH v1] Staging: rtl8188eu: core: Fix coding style issue

2020-07-01 Thread Puranjay Mohan
Use %s and __func__ in place of function names. This solves following checkpatch.pl warning WARNING: Prefer using '"%s...", __func__' to using 'rtw_do_join', this function's name, in a string Signed-off-by: Puranjay Mohan --- V1: Add staging in the subject.