[PATCH 0/4] staging:rtl8192u: Style changes r819xU_firmware.h

2018-09-08 Thread John Whitmore
This short series of patches just clears simple checkpatch issues with the header file r819xU_firmware.h. John Whitmore (4): staging:rtl8192u: Remove unused RTL8190_CPU_START_OFFSET - Style staging:rtl8192u: Refactor GET_COMMAND_PACKET_FRAG_THRESHOLD - Style staging:rtl8192u: Remove typedef

[PATCH 4/4] staging:rtl8192u: Remove typedef from enum opt_rst_type_e - Style

2018-09-08 Thread John Whitmore
Remove the typedef directive from enumerated type opt_rst_type_e, this change clears the checkpatch issue with defining new types in the code. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u

[PATCH 3/4] staging:rtl8192u: Remove typedef from firmware_init_step_e - Style

2018-09-08 Thread John Whitmore
Remove the typedef directive from enumerated type firmware_init_step_e this clears the checkpatch issue with adding new types to the code. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u

[PATCH 2/4] staging:rtl8192u: Refactor GET_COMMAND_PACKET_FRAG_THRESHOLD - Style

2018-09-08 Thread John Whitmore
ntime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_firmware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.h b/drivers/staging/rtl8192u/r819xU_firmware.h index 794dca7dcd95..e78e547044b4 100644 ---

[PATCH 1/4] staging:rtl8192u: Remove unused RTL8190_CPU_START_OFFSET - Style

2018-09-08 Thread John Whitmore
The defined constant RTL8190_CPU_START_OFFSET is not used in the code so has been removed. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/r819xU_firmware.h | 1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH 1/1] staging:rtl8192u: Rename dot11d_init to fix name clash

2018-09-11 Thread John Whitmore
On Mon, Sep 10, 2018 at 10:19:29AM +0200, Greg KH wrote: > On Tue, Sep 04, 2018 at 11:56:23AM +0100, John Whitmore wrote: > > The function dot11d_init() was previously renamed to clear a style > > issue. Unfortunately the new name used, dot11d_init(), clashes with > > a syb

Re: [PATCH 20/20] staging:rtl8192u: Rename OWN - Style

2018-09-11 Thread John Whitmore
On Mon, Sep 10, 2018 at 05:09:27PM +0200, Greg KH wrote: > On Sat, Sep 01, 2018 at 12:02:50AM +0100, John Whitmore wrote: > > Rename the member variable 'OWN' to 'own', this is to comply with the > > coding standard, where variables are named in lowercase. >

[PATCH 08/13] staging:rtl8192u: Remove LSigTxopProtect - Style

2018-09-26 Thread John Whitmore
Remove the unused member bit LSigTxopProtect. This member is not used in code so has been replaced with a 'padding' bit, to keep byte boundary alignment. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/stagin

[PATCH 04/13] staging:rtl8192u: Move HTSetConnectBwModeCallback() - Style

2018-09-26 Thread John Whitmore
emoved and the function implementation moved so that it is defined before it is used in the file. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/ieee80211.h| 1 - .../rtl8192u

[PATCH 03/13] staging:rtl8192u: Remove definition of HTSetConnectBwMode - Style

2018-09-26 Thread John Whitmore
Remove the redundant declaration of the function HTSetConnectBwMode() as it is not needed in the code. The function is already declared in header file, multiple declarations add nothing. This is a style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore

[PATCH 02/13] staging:rtl8192u: Make HTMcsToDataRate static - Style

2018-09-26 Thread John Whitmore
The function HTMcsToDataRate() is not used outside the file in which it is defined, so has been declared as 'static' and the prototype removed from the header file. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --

[PATCH 01/13] staging:rtl8192u: Remove HTHalfMcsToDataRate() - Style

2018-09-26 Thread John Whitmore
on runtime code execution. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/ieee80211.h| 1 - .../rtl8192u/ieee80211/rtl819x_HTProc.c | 57 --- 2 files changed, 58 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging

[PATCH 07/13] staging:rtl8192u: Remove DelayBA, PSMP and Rsvd1 - Style

2018-09-26 Thread John Whitmore
Remove the unused member variables DelayBA, PSMP and Rsvd1. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 3 --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2

[PATCH 10/13] staging:rtl8192u: Remove ExtHTCapInfo - Style

2018-09-26 Thread John Whitmore
The member variable ExtHTCapInfo is not used in code so has been removed. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 3 --- drivers/staging/rtl8192u/ieee80211

[PATCH 00/13] staging:rtl8192u: Style & memory leak fix

2018-09-26 Thread John Whitmore
but fixed it anyhow. I've tried to find this device, or a datasheet on it, so that I could actually make sure it still worked but that's not been possible. Apparently it's a discontinued device, but that possibly makes it a safer sandbox to start messing with. John Whitmo

[PATCH 05/13] staging:rtl8192u: Remove AdvCoding and GreenField - Style

2018-09-26 Thread John Whitmore
The member variables AdvCoding and GreenField are unused in code so have been removed from the structure and associated initialisation function. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u

[PATCH 06/13] staging:rtl8192u: Remove TxSTBC and RxSTBC - Style

2018-09-26 Thread John Whitmore
Remove the member variables TxSTBC and RxSTBC as neither is used in code. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 2 -- drivers/staging/rtl8192u/ieee80211

[PATCH 13/13] staging:rtl8192u: Remove potential memory leak

2018-09-26 Thread John Whitmore
Add call to ieee80211_networks_free() to avoid potential memory leak if allocation of pHTInfo fails. If the third allocation fails only the first successful allocation is freed, not the second. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 5 + 1

[PATCH 11/13] staging:rtl8192u: Remove TxBFCap - Style

2018-09-26 Thread John Whitmore
The member variable TxBFCap is not used in code so has simply been removed from the code. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 3 --- drivers/staging/rtl8192u

[PATCH 09/13] staging:rtl8192u: Remove Rsvd2 - Style

2018-09-26 Thread John Whitmore
Remove the unused member variable Rsvd2 from structure. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u

[PATCH 12/13] staging:rtl8192u: Remove ASCap - Style

2018-09-26 Thread John Whitmore
Remove the unused member variable ASCap from code. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 4 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 -- 2 files

Re: [PATCH 05/13] staging:rtl8192u: Remove AdvCoding and GreenField - Style

2018-09-28 Thread John Whitmore
On Fri, Sep 28, 2018 at 05:31:40PM +0300, Dan Carpenter wrote: > On Wed, Sep 26, 2018 at 08:16:56PM +0100, John Whitmore wrote: > > The member variables AdvCoding and GreenField are unused in code so > > have been removed from the structure and associated initialisation > > fu

Re: [PATCH 05/13] staging:rtl8192u: Remove AdvCoding and GreenField - Style

2018-09-28 Thread John Whitmore
On Fri, Sep 28, 2018 at 02:35:50PM +0200, Greg KH wrote: > On Wed, Sep 26, 2018 at 08:16:56PM +0100, John Whitmore wrote: > > The member variables AdvCoding and GreenField are unused in code so > > have been removed from the structure and associated initialisation > > functio

[PATCH 01/11] staging:rtl8192u: Add missing SPDX-License-Identifier - Style

2018-10-07 Thread John Whitmore
Add the missing SPDX-License-Identifier tag to file to clear the checkpatch issue. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 1 + 1 file changed, 1 insertion

[PATCH 02/11] staging:rtl8192u: Removed commented out include - Style

2018-10-07 Thread John Whitmore
Remove commented out #include directive. Additionally shorted a block comment to clear the checkpatch issue with line length. These are coding style changes which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211

[PATCH 05/11] staging:rtl8192u: Add spaces around + operator - Style

2018-10-07 Thread John Whitmore
Add spaces around '+' operator to clear the checkpatch issue. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 11/11] staging:rtl8192u: Correct comparison with NULL - Style

2018-10-07 Thread John Whitmore
Correct code to remote comparison with NULL, this clears the resulting checkpatch issue. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- 1 file changed, 1 insertion

[PATCH 07/11] staging:rtl8192u: Correct code indentation - Style

2018-10-07 Thread John Whitmore
Rewrite code block to correct the indentation of code. This clears the resulting checkpatch issue. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 6 +++--- 1 file changed, 3

[PATCH 03/11] staging:rtl8192u: Clear error with line ending ( - Style

2018-10-07 Thread John Whitmore
Rewrite function call to clear the checkpatch issue with lines ending with a '(' character. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 6 +++--- 1 file

[PATCH 06/11] staging:rtl8192u: Rewrite test for null - Style

2018-10-07 Thread John Whitmore
Rewrite a test for NULL to comply with the coding style and clear the checkpatch issue. This is a coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 00/11] staging:rtl8192u: Coding Style changes

2018-10-07 Thread John Whitmore
Just a number of simple coding style changes in the file ieee80211_module.c John Whitmore (11): staging:rtl8192u: Add missing SPDX-License-Identifier - Style staging:rtl8192u: Removed commented out include - Style staging:rtl8192u: Clear error with line ending ( - Style staging:rtl8192u

[PATCH 04/11] staging:rtl8192u: Remove extra blank lines - Style

2018-10-07 Thread John Whitmore
Remove the extra blank lines to clear checkpatch issue. This is a simple coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 --- 1 file changed, 3 deletions(-) diff --git a

[PATCH 08/11] staging:rtl8192u: Add missing blank lines - Style

2018-10-07 Thread John Whitmore
Add missing blank lines after declarations. This clears the resulting checkpatch issue. This is a simple coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 ++ 1 file changed, 2

[PATCH 09/11] staging:rtl8192u: Remove unnecessary line continuation - Style

2018-10-07 Thread John Whitmore
Remove the unnecessary line continuation character to clear checkpatch issue. This is a simple coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 10/11] staging:rtl8192u: Correct code alignment - Style

2018-10-07 Thread John Whitmore
Correct the alignment of a function, this clears checkpatch issue. This is a simple coding style change which should not impact runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 6/8] staging: rtl8192u: Remove braces from single statement blocks - Style

2018-06-24 Thread John Whitmore
Removed the unrequired braces from single statement blocks - Coding Style. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b

[PATCH v2 1/8] staging: rtl8192u: change block comments to prefered style - Coding Style

2018-06-24 Thread John Whitmore
Some of the comment blocks are commening out code so have been left for the moment. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 366 ++ 1 file changed, 195 insertions(+), 171 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH v2 4/8] staging: rtl8192u: Truncate block comments to 80 character length - Style

2018-06-24 Thread John Whitmore
Where possible truncation of block comments to the 80 character length preferred by the coding style. In a previous version of this commit some of the comments were contentious so those have not been touched in this version. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211

[PATCH v2 2/8] staging: rtl8192u: Correct indentation of switch statement - Coding Style

2018-06-24 Thread John Whitmore
Removed an extra indentation from the code of the various case options in a switch statement. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 30 +-- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH v2 8/8] staging: rtl8192u: Correction of spelling mistake in comment.

2018-06-24 Thread John Whitmore
Simple spelling correction. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index

[PATCH v2 7/8] staging: rtl8192u: Correct if statement - Coding Style

2018-06-24 Thread John Whitmore
Corrected the coding style of if statement. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211

Re: V2 Coding style changes. Plus one change to use memset()

2018-06-24 Thread John Whitmore
On Sun, Jun 24, 2018 at 06:53:24PM +0800, Greg KH wrote: > On Sun, Jun 24, 2018 at 10:57:24AM +0100, John Whitmore wrote: > > Simple coding style changes to single file > > drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c > > Nit, please include the driver and subsystem

Re: [PATCH v2 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-24 Thread John Whitmore
On Sun, Jun 24, 2018 at 07:26:41AM -0700, Joe Perches wrote: > On Sun, 2018-06-24 at 10:57 +0100, John Whitmore wrote: > > Replaced memory initialising loop with memset, as suggested by Andy > > Shevchenko > [] > > diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x

Re: [PATCH v2 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-24 Thread John Whitmore
On Sun, Jun 24, 2018 at 07:26:41AM -0700, Joe Perches wrote: > On Sun, 2018-06-24 at 10:57 +0100, John Whitmore wrote: > > Replaced memory initialising loop with memset, as suggested by Andy > > Shevchenko > [] > > diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x

staging: rtl8192u: v3 Coding style changes. Plus one change to use memset()

2018-06-24 Thread John Whitmore
Simple coding style changes to single file drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c Given feedback on some of the comments, I truncated to the 80 character limit, in code, (as opposed to function block comments). I have left a number of the contentious comments as they are. Another pi

[PATCH v3 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-24 Thread John Whitmore
Replaced memory initialising loop with memset, as suggested by Andy Shevchenko Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b

[PATCH v3 6/8] staging: rtl8192u: Remove braces from single statement blocks - Style

2018-06-24 Thread John Whitmore
Removed the unrequired braces from single statement blocks - Coding Style. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b

[PATCH v3 8/8] staging: rtl8192u: Correction of spelling mistake in comment.

2018-06-24 Thread John Whitmore
Simple spelling correction. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index

[PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style

2018-06-24 Thread John Whitmore
Changed a number of hard coded function names to use %s and __func__ Mailing list response suggest that there is a better method for debugging using netdev_dbg(). I can't argue with that, but for the moment this change will clear the checkpatch.pl Warning. Signed-off-by: John Whi

[PATCH v3 2/8] staging: rtl8192u: Correct indentation of switch statement - Coding Style

2018-06-24 Thread John Whitmore
Removed an extra indentation from the code of the various case options in a switch statement. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 30 +-- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH v3 7/8] staging: rtl8192u: Correct if statement - Coding Style

2018-06-24 Thread John Whitmore
Corrected the coding style of if statement. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211

[PATCH v3 4/8] staging: rtl8192u: Truncate block comments to 80 character length - Style

2018-06-24 Thread John Whitmore
Where possible truncation of block comments to the 80 character length preferred by the coding style. In a previous version of this commit some of the comments were contentious so those have not been touched in this version. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211

[PATCH v3 1/8] staging: rtl8192u: change block comments to prefered style - Coding Style

2018-06-24 Thread John Whitmore
Some of the comment blocks are commening out code so have been left for the moment. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 366 ++ 1 file changed, 195 insertions(+), 171 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

staging: rtl8192u: V3 Coding style changes. Plus one change to use memset()

2018-06-24 Thread John Whitmore
Simple coding style changes to single file drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c Given feedback on some of the comments, I truncated to the 80 character limit, in code, (as opposed to function block comments). I have left a number of the contentious comments as they are. Another pie

[PATCH v3 1/8] staging: rtl8192u: change block comments to prefered style - Coding Style

2018-06-24 Thread John Whitmore
Some of the comment blocks are commening out code so have been left for the moment. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 366 ++ 1 file changed, 195 insertions(+), 171 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH v3 2/8] staging: rtl8192u: Correct indentation of switch statement - Coding Style

2018-06-24 Thread John Whitmore
Removed an extra indentation from the code of the various case options in a switch statement. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 30 +-- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH v3 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-24 Thread John Whitmore
Replaced memory initialising loop with memset, as suggested by Andy Shevchenko Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b

[PATCH v3 4/8] staging: rtl8192u: Truncate block comments to 80 character length - Style

2018-06-24 Thread John Whitmore
Where possible truncation of block comments to the 80 character length preferred by the coding style. In a previous version of this commit some of the comments were contentious so those have not been touched in this version. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211

[PATCH v3 8/8] staging: rtl8192u: Correction of spelling mistake in comment.

2018-06-24 Thread John Whitmore
Simple spelling correction. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index

[PATCH v3 7/8] staging: rtl8192u: Correct if statement - Coding Style

2018-06-24 Thread John Whitmore
Corrected the coding style of if statement. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211

[PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style

2018-06-24 Thread John Whitmore
Changed a number of hard coded function names to use %s and __func__ Mailing list response suggest that there is a better method for debugging using netdev_dbg(). I can't argue with that, but for the moment this change will clear the checkpatch.pl Warning. Signed-off-by: John Whi

[PATCH v3 6/8] staging: rtl8192u: Remove braces from single statement blocks - Style

2018-06-24 Thread John Whitmore
Removed the unrequired braces from single statement blocks - Coding Style. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b

Re: [PATCH v3 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-24 Thread John Whitmore
Sorry having difficulty getting the full v3 patch set sent using git send-email. Only one seems to be going out. Sorry about the noise. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-

Re: [PATCH v3 7/8] staging: rtl8192u: Correct if statement - Coding Style

2018-06-25 Thread John Whitmore
On Sun, Jun 24, 2018 at 08:59:22AM -0700, Joe Perches wrote: > Rather than doing individual patches for each line > with a whitespace issue, I think it'd be better to > do a single driver wide patch. > > Perhaps use a tool like: > > $ git ls-files drivers/staging/rtl8192u | > xargs ./scripts/ch

Re: [PATCH v3 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-25 Thread John Whitmore
On Mon, Jun 25, 2018 at 12:06:30PM +0300, Andy Shevchenko wrote: > On Sun, Jun 24, 2018 at 6:34 PM, John Whitmore > wrote: > > Replaced memory initialising loop with memset, as suggested by Andy > > Shevchenko > > > > Suggested-by ? > Em, not sure how to res

Re: [PATCH v3 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-25 Thread John Whitmore
On Mon, Jun 25, 2018 at 02:05:04PM +0100, Justin Skists wrote: > > > On 25 June 2018 at 13:36 John Whitmore wrote: > > > > > > On Mon, Jun 25, 2018 at 12:06:30PM +0300, Andy Shevchenko wrote: > > > On Sun, Jun 24, 2018 at 6:34 PM, John Whitmore

Re: [PATCH v3 3/8] staging: rtl8192u: User memset to initialize memory, instead of loop.

2018-06-27 Thread John Whitmore
On Tue, Jun 26, 2018 at 11:56:40AM +0800, Greg Kroah-Hartman wrote: > On Mon, Jun 25, 2018 at 08:50:26PM +0100, John Whitmore wrote: > > On Mon, Jun 25, 2018 at 02:05:04PM +0100, Justin Skists wrote: > > > > > > > On 25 June 2018 at 13:36 John Whitmore wrote: &g

Re: [PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style

2018-06-27 Thread John Whitmore
On Tue, Jun 26, 2018 at 11:56:24AM +0800, Greg KH wrote: > On Sun, Jun 24, 2018 at 04:34:51PM +0100, John Whitmore wrote: > > Changed a number of hard coded function names to use %s and __func__ > > > > Mailing list response suggest that there is a better method for debugging

Re: [PATCH v3 5/8] staging: rtl8192u: Use %s and __func__ instead of hardcoded string - Style

2018-06-28 Thread John Whitmore
On Thu, Jun 28, 2018 at 10:38:28AM +0300, Dan Carpenter wrote: > On Wed, Jun 27, 2018 at 09:22:50PM +0100, John Whitmore wrote: > > On Tue, Jun 26, 2018 at 11:56:24AM +0800, Greg KH wrote: > > > On Sun, Jun 24, 2018 at 04:34:51PM +0100, John Whitmore wrote: > > > >

staging: rtl8192u: RFC - harmonisation of rtl819x_HT.h ?

2018-06-29 Thread John Whitmore
This patch set includes two fairly trivial patches but the third patch is possibly controversial. There are two files called rtl819x_HT.h $ find -name rtl819x_HT.h -print ./drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h ./drivers/staging/rtl8192e/rtl819x_HT.h The two files are very similar but

[PATCH 3/3] staging: rtl8192u: Prune the rtl819x_HT.h file of unused definitions.

2018-06-29 Thread John Whitmore
8192u/ieee80211/rtl819x_HT.h" as a first step towards possibly merging the two files into one. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 190 +- 1 file changed, 93 insertions(+), 97 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee8

[PATCH 2/3] staging: rtl8192u Remove redundant #include directive

2018-06-29 Thread John Whitmore
The file includes the file rtl819x_HT.h, which has already been included by the previously included file ieee80211.h Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u

[PATCH 1/3] staging: rtl8192u: Use __func__ instead of hardcoded string - Style

2018-06-29 Thread John Whitmore
Chnaged logging statements to use %s and __func__ instead of hard coding the function name in a string. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH 3/5] staging: rtl8192u: Remove unused variable.

2018-07-04 Thread John Whitmore
Removed the unused variable from previously removed loop. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211

[PATCH 1/5] staging: rtl8192u: Use __func__ instead of hardcoded string - Style

2018-07-04 Thread John Whitmore
Changed logging statements to use %s and __func__ instead of hard coding the function name in a string. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 24 ++- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/staging

[PATCH 5/5] staging: rtl8192u: Refactor for coding style

2018-07-04 Thread John Whitmore
Changes to indentation and witespace issues in the ieee80211_softmac.c file. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 1015 +++-- 1 file changed, 443 insertions(+), 572 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH 4/5] staging: rtl8192u: Remove redundant definitions in header

2018-07-04 Thread John Whitmore
Truncated header file removing definitions which aren't used. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 117 -- 1 file changed, 117 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h b/drivers/staging/rtl

[PATCH 2/5] staging: rtl8192u: Use memset to initialize memory, instead of loop.

2018-07-04 Thread John Whitmore
Replaced memory initialising loop with memset instead. Suggested-by: Andy Shevchenko Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b

[PATCH v2 1/9] staging: rtl8192u: Use __func__ instead of hardcoded string - Style

2018-07-04 Thread John Whitmore
Changed logging statements to use %s and __func__ instead of hard coding the function name in a string. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 24 ++- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/staging

[PATCH v2 5/9] staging: rtl8192u: Add space required around '==' opeartor - Style

2018-07-04 Thread John Whitmore
Simple addition of the coding style required spaces around '==' operator. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211

[PATCH v2 2/9] staging: rtl8192u: Use memset to initialize memory, instead of loop.

2018-07-04 Thread John Whitmore
Replaced memory initialising loop with memset instead. Suggested-by: Andy Shevchenko Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c

[PATCH v2 4/9] staging: rtl8192u: Remove superfluous blank lines - Coding Style

2018-07-04 Thread John Whitmore
Removal of extra blank lines from the ieee80211_softmac.c file Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 105 -- 1 file changed, 105 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging

[PATCH v2 7/9] staging: rtl8192u: Remove space after cast - Coding Style

2018-07-04 Thread John Whitmore
According to checkpatch - No space is necessary after a cast. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 30 +-- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b

[PATCH v2 3/9] staging: rtl8192u: Remove redundant definitions in header

2018-07-04 Thread John Whitmore
Truncated header file removing definitions which aren't used. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 117 -- 1 file changed, 117 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h b/drivers/staging/rtl

[PATCH v2 6/9] staging: rtl8192u: Add required spaces around '||' operator - Sytle

2018-07-04 Thread John Whitmore
Additon of the coding style required spaces around the '||' operator. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_so

[PATCH v2 8/9] staging: rtl8192u: Add required space around '=' operator - Style

2018-07-04 Thread John Whitmore
checkpatch requires spaces around '=' operator so added. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 50 +-- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

[PATCH v2 9/9] staging: rtl8192u: Add space after ', ' character - Coding Style

2018-07-04 Thread John Whitmore
checkpatch requires a space after ',' - Added. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 57 ++- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drive

[PATCH 03/12] staging:rtl8192u: Remove blank lines before '}' and after '{' characters

2018-07-07 Thread John Whitmore
Coding style change to simply remove the unrequired spaces before a closing brace or before an opening brace. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 44 ++- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/drivers/staging

[PATCH 02/12] staging:rtl8192u: Add space required before '(' - Style

2018-07-07 Thread John Whitmore
Simple addition of the coding style required space before '('. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 174 +- 1 file changed, 86 insertions(+), 88 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_so

[PATCH 01/12] staging:rtl8192u: rename HT_CHANNEL_WIDTH -> enum ht_channel_width

2018-07-07 Thread John Whitmore
remove the typedef HT_CHANNEL_WIDTH and replace with 'enum ht_channel_width' Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211.h| 4 ++-- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c | 4 ++-- drivers/staging/rtl8192u/ieee80211/rt

[PATCH 09/12] staging:rtl8192u: Move trailing conditional statement to the following line

2018-07-07 Thread John Whitmore
Coding standard requires that the conditional statement is not on the same line as the 'if' or 'else' but on the following line. Statements moved accordingly. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 25 +-- 1 file ch

[PATCH 10/12] staging:rtl8192u: Remove unnecessary parentheses - Coding Style

2018-07-07 Thread John Whitmore
checkpatch.pl flags unnecessary parentheses so removed from code. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers

[PATCH 05/12] staging:rtl8192u: Correct indentation and spacing for braces of code blocks

2018-07-07 Thread John Whitmore
Simple style change to fix the indentaiton and spacing of the braces around multi ling code blocks. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 250 -- 1 file changed, 105 insertions(+), 145 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH 04/12] staging:rtl8192u: Add spaces required around operators - Coding Style

2018-07-07 Thread John Whitmore
Added the spaces, required by coding style, around the various operators. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 124 +- 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH 06/12] staging:rtl8192u: rename HT_EXTCHNL_OFFSET -> enum ht_extension_chan_width

2018-07-07 Thread John Whitmore
remove the typedef of enumerated type HT_EXTCHNL_OFFSET and replace it with 'enum ht_extension_chan_offset' Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211.h| 4 ++-- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c | 2 +- drive

[PATCH 07/12] staging:rtl8192u: Correct spacing before and after parenthesis - Style

2018-07-07 Thread John Whitmore
Corrected coding style issues aroung opening and closed parenthesis. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 78 +-- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b

[PATCH 11/12] staging:rtl8192u: Correct indentation of ieee80211_softmac_new_net()

2018-07-07 Thread John Whitmore
Coding style change to correct the indentation of the function ieee80211_softmac_new_net() Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 101 +- 1 file changed, 50 insertions(+), 51 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211

[PATCH 08/12] staging:rtl8192u: Remove prohibited spaces - Coding Style

2018-07-07 Thread John Whitmore
Simple removal of spaces prohibited by the coding standard. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers

[PATCH 12/12] staging:rtl8192u: Correction of indentation issues - Coding Style

2018-07-07 Thread John Whitmore
Simple changes to correct indentation issues. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 24 +-- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging

Re: [PATCH 03/12] staging:rtl8192u: Remove blank lines before '}' and after '{' characters

2018-07-08 Thread John Whitmore
On Sun, Jul 08, 2018 at 05:38:11PM +0200, Greg KH wrote: > On Sat, Jul 07, 2018 at 03:55:04PM +0100, John Whitmore wrote: > > Coding style change to simply remove the unrequired spaces before a closing > > brace or before an opening brace. > > That would be good, but that&

  1   2   3   4   5   6   7   >