[PATCH 5/6] staging: ks7010: Fix line over 80 characters.

2018-03-16 Thread Quytelda Kahja
There is no reason for comment describing the BSSID check for loop to be spaced so far to the right. Move it above the for loop. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH 2/6] staging: ks7010: Factor out code into helper methods.

2018-03-16 Thread Quytelda Kahja
Some cases in the switch statement in get_ap_information() are indented as much as five levels, which makes the code difficult to read because of all the wrapping. Factor them out into helper methods. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_ho

[PATCH 6/6] staging: ks7010: Factor out repeated request initialization code.

2018-03-16 Thread Quytelda Kahja
The code to initialize various different types of request structs is repeated multiple times. Factor this code out into a macro called INIT_REQUEST. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 55 +++---

[PATCH 3/6] staging: ks7010: Remove unnecessary parentheses.

2018-03-16 Thread Quytelda Kahja
Remove unnecessary parentheses highlighted by checkpatch. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_ho

[PATCH 1/6] staging: ks7010: Factor out repeated code.

2018-03-16 Thread Quytelda Kahja
Some of the code for reading IEs is replicated multiple times in the switch statement for get_ap_information(). Factor that code out into read_ie(). Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 48 +-

[PATCH] staging: most: Remove unnecessary usage of BUG_ON().

2018-03-06 Thread Quytelda Kahja
There is no need for the calls to BUG_ON() in this driver, which are used to check if mbo or mbo->context are NULL; mbo is never NULL, and if mbo->context is NULL it would have already been dereferenced and oopsed before reaching the BUG_ON(). Signed-off-by: Quytelda Kahja <quyte...@ta

[PATCH] staging: ks7010: Replace literal with constant.

2018-03-06 Thread Quytelda Kahja
Replace literal bytestring with CIPHER_ID_WPA_WEP40 constant. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_ho

[PATCH v2 2/2] staging: most: Indent function parameter.

2018-03-06 Thread Quytelda Kahja
Indent the parameters for a function call that extends past 80 characters. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c

Re: [PATCH 2/4] staging: most: Replace calls to BUG_ON() with WARN_ONCE() and return.

2018-03-06 Thread Quytelda Kahja
ugh, so I assumed there wasn't really much recovery to be made from that problem. If you feel this doesn't improve the behavior of the driver, just drop the patch. Thank you, Quytelda Kahja On Thu, Mar 1, 2018 at 8:21 AM, Greg KH <gre...@linuxfoundation.org> wrote: > On Fri, Feb 23, 2018 a

[PATCH v2 1/2] staging: most: Add a blank line.

2018-03-06 Thread Quytelda Kahja
Use a blank line after components_show() function declaration. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index 0ab2de5ecf18..67e2d7

[PATCH 2/2] staging: most: Fix a coding style problem

2018-03-01 Thread Quytelda Kahja
Indent the parameters for a function call that extends past 80 characters. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c

[PATCH 1/2] staging: most: Fix a coding style problem.

2018-03-01 Thread Quytelda Kahja
Use a blank line after components_show() function declaration. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index 0ab2de5ecf18..67e2d7

Re: [PATCH 3/5] staging: ks7010: Factor out repeated code into function 'ks_wlan_cap()'.

2018-03-01 Thread Quytelda Kahja
my imperative attempts. However, I will word my change logs in the imperative as best I can in the future. Thank you, Quytelda Kahja On Thu, Mar 1, 2018 at 12:54 PM, Tobin C. Harding <m...@tobin.cc> wrote: > On Thu, Mar 01, 2018 at 02:15:00PM +0300, Dan Carpenter wrote: >> On Th

[PATCH 2/5] staging: ks7010: Replace SSID_MAX_SIZE with IEEE80211_MAX_SSID_LEN.

2018-02-28 Thread Quytelda Kahja
SSID_MAX_SIZE is a constant defined locally in ks_hostif.h, but it should be replaced with IEEE80211_MAX_SSID_LEN from the kernel's 802.11 header, of which it is just a copy. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- drivers/s

[PATCH 4/5] staging: ks7010: Replace local capability constants with kernel constants.

2018-02-28 Thread Quytelda Kahja
This driver defined constants BSS_CAP_* to represent WLAN capability codes; however, these constants are already defined in the header 'linux/ieee80211.h' as WLAN_CAPABILITY_*. This change removes the locally defined constants and substitutes the kernel's constants. Signed-off-by: Quytelda Kahja

[PATCH 1/5] staging: ks7010: Use constants from ieee80211_eid instead of literal ints.

2018-02-28 Thread Quytelda Kahja
The case statement in get_ap_information() should not use literal integers to parse information element IDs when these values are provided by name in 'enum ieee80211_eid' in the header 'linux/ieee80211.h'. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/

[PATCH 5/5] staging: ks7010: Replace local frame type constants with kernel constants.

2018-02-28 Thread Quytelda Kahja
-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 2 +- drivers/staging/ks7010/ks_hostif.h | 6 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index f425975fbcbc..7935ba

[PATCH 3/5] staging: ks7010: Factor out repeated code into function 'ks_wlan_cap()'.

2018-02-28 Thread Quytelda Kahja
The code that generates a WLAN capability mask is repeated in five functions. This change refactors that code into a new function, which is called now in each of those functions. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.

Re: [PATCH v2] Staging: bcm2048: Fix function argument alignment in radio-bcm2048.c.

2018-02-26 Thread Quytelda Kahja
ed in the future since we run modern machines that aren't limited to 80 character terminals anymore, so this warning may soon be irrelevant anyway. Thank you, Quytelda Kahja On Mon, Feb 26, 2018 at 5:51 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/20/2018 07:53 AM, Quytelda

[PATCH 1/4] staging: most: Fix coding style problems.

2018-02-24 Thread Quytelda Kahja
Makes two very minor changes indicated by checkpatch: 1) Add a newline after components_show() definition. 2) Fix a line over the 80 character limit. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 5 - 1 file changed, 4 insertions(+), 1 de

[PATCH 2/4] staging: most: Replace calls to BUG_ON() with WARN_ONCE() and return.

2018-02-24 Thread Quytelda Kahja
Replace calls to BUG_ON() used to check for NULL pointers with WARN_ONCE() followed by a return. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/staging/most/co

[PATCH 3/4] staging: most: Remove unnecessary OOM messages.

2018-02-24 Thread Quytelda Kahja
It isn't necessary for the driver to log out-of-memory errors, so these have been removed and the functions simply return -ENOMEM. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/most/

[PATCH 4/4] staging: most: Fix missing identifier in function definition argument.

2018-02-24 Thread Quytelda Kahja
The function pointer 'complete' in 'struct mbo' should use an identifier for its argument. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/most/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/most/core.h b/drivers/stagin

[PATCH 2/4] Staging: gdm724x: hci: Changed camel-case to snake-case.

2018-02-22 Thread Quytelda Kahja
Changed a variable name from camel to snake case to fix a coding style issue. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/hci_packet.h b/drivers/s

[PATCH 4/4] Staging: gdm724x: LTE: Refactor gdm_lte_pdn_table().

2018-02-22 Thread Quytelda Kahja
Mostly this change just reverses the primary conditional so most of the code can be pulled back a tab, which fixes some code style warnings. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_lte.c | 22 +++--- 1 file changed, 11 inse

[PATCH 3/4] Staging: gdm724x: Simplify the struct gdm_endian to a variable.

2018-02-22 Thread Quytelda Kahja
Since the testing for host endianness and in-driver conversion were removed in 77e8a50149a2, the gdm_endian struct contains only one member, and can therefore be simplified to a single u8 variable. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_endian.

[PATCH 1/4] Staging: gdm724x: LTE: Fix trailing open parentheses.

2018-02-22 Thread Quytelda Kahja
Fix lines with a trailing open parenthesis, which is a coding style issue. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_lte.c | 44 +++ 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/s

Re: [PATCH 1/2] Staging: gdm724x: Simplify the struct gdm_endian to a variable.

2018-02-22 Thread Quytelda Kahja
, Quytelda Kahja On Thu, Feb 22, 2018 at 6:02 AM, Greg KH <gre...@linuxfoundation.org> wrote: > On Wed, Feb 21, 2018 at 05:12:36AM -0800, Quytelda Kahja wrote: >> Since the testing for host endianness and in-driver conversion were >> removed in 77e8a50149a2, the gdm_endian str

[PATCH 2/2] Staging: gdm724x: LTE: Refactor gdm_lte_pdn_table().

2018-02-21 Thread Quytelda Kahja
Mostly this change just reverses the primary conditional so most of the code can be pulled back a tab, which fixes some code style warnings. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_lte.c | 22 +++--- 1 file changed, 11 inse

[PATCH 1/2] Staging: gdm724x: Simplify the struct gdm_endian to a variable.

2018-02-21 Thread Quytelda Kahja
Since the testing for host endianness and in-driver conversion were removed in 77e8a50149a2, the gdm_endian struct contains only one member, and can therefore be simplified to a single u8 variable. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_endian.

Re: [PATCH] Staging: gdm724x: hci: Changed camel-case to snake-case.

2018-02-21 Thread Quytelda Kahja
That could be the case, though I'm not sure where to find any specs. Though looking through the history of this driver, it seems that some of the variable names have been slowly changing from camel case to snake case. Thanks, Quytelda Kahja On Wed, Feb 21, 2018 at 2:45 AM, Dan Carpenter

[PATCH] Staging: gdm724x: hci: Changed camel-case to snake-case.

2018-02-21 Thread Quytelda Kahja
Changed a variable name from camel to snake case to fix a coding style issue. Signed-off-by: Quytelda Kahja <quyte...@gmail.com> --- drivers/staging/gdm724x/hci_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/hci_packet.h b/drivers/s

[PATCH] Staging: gdm724x: LTE: Fix trailing open parentheses.

2018-02-21 Thread Quytelda Kahja
Fix lines with a trailing open parenthesis, which is a coding style issue. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_lte.c | 44 +++ 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/drivers/s

[PATCH v2] Staging: bcm2048: Fix function argument alignment in radio-bcm2048.c.

2018-02-19 Thread Quytelda Kahja
Fix a coding style problem. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- This is the patch without the unnecessary fixes for line length. drivers/staging/media/bcm2048/radio-bcm2048.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff

[PATCH v2 3/3] Staging: ks7010: hostif: Convert the ps_confirm_wait_inc() macro to a real function.

2018-02-19 Thread Quytelda Kahja
Convert the unsafe macro into an inline function. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_ho

[PATCH v2 2/3] Staging: ks7010: hostif: Convert SME queue macros to real functions.

2018-02-19 Thread Quytelda Kahja
Convert the unsafe macros into inline functions. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/

[PATCH v2 1/3] Staging: ks7010: sdio: Convert RX/TX queue macros into real functions.

2018-02-19 Thread Quytelda Kahja
Convert the unsafe macros into inline functions. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks7010_sdio.c | 46 ++-- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdi

[PATCH] Staging: bcm2048: Fix function argument alignment in radio-bcm2048.c.

2018-02-18 Thread Quytelda Kahja
Fix a coding style problem. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/media/bcm2048/radio-bcm2048.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging

[PATCH 3/3] Staging: gdm724x: tty: Remove unused macro 'gdm_tty_send_control'.

2018-02-18 Thread Quytelda Kahja
Remove the macro 'gdm_tty_send_control' which adds unnecessary complexity, is unused, and has arguments that could mistakenly be evaluated multiple times. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_tty.c | 3 --- 1 file changed, 3 deletions(-)

[PATCH 2/3] Staging: gdm724x: tty: Remove unnecessary macro 'gdm_tty_recv'.

2018-02-18 Thread Quytelda Kahja
Remove the macro 'gdm_tty_recv' which adds unnecessary complexity and has arguments that could mistakenly be evaluated multiple times. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_tty.c | 11 ++- 1 file changed, 6 insertions(+), 5 del

[PATCH 1/3] Staging: gdm724x: tty: Remove unnecessary macro 'gdm_tty_send'.

2018-02-18 Thread Quytelda Kahja
Remove the macro 'gdm_tty_send' which adds unnecessary complexity and has arguments that could mistakenly be evaluated multiple times. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_tty.c | 15 ++- 1 file changed, 6 insertions(+), 9 del

[PATCH] Staging: gdm724x: mux: Check return value of register_lte_tty_driver().

2018-02-17 Thread Quytelda Kahja
Check the return value of of the register_lte_tty_driver() call in the module initialization function. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_mux.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/g

[PATCH 4/4] Staging: ks7010: hostif: Fix multiple use of arguments in ps_confirm_wait_inc() macro.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[PATCH 2/4] Staging: ks7010: hostif: Fix multiple use of arguments in SME queue macros.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-)

[PATCH 3/4] Staging: ks7010: hostif: Fix multiple use of arguments in rate and event masking macros.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks_hostif.h | 74 +- 1 file changed, 50 insertions(

[PATCH 1/4] Staging: ks7010: sdio: Fix multiple use of arguments in RX/TX queue macros.

2018-02-16 Thread Quytelda Kahja
Use GCC extensions to prevent macro arguments from accidentally being evaluated multiple times when the macro is called. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/ks7010/ks7010_sdio.c | 40 1 file changed, 27 insertions(

[PATCH] Staging: gdm724x: tty: Fix macro argument reuse that could cause side-effects.

2018-02-16 Thread Quytelda Kahja
Fix a coding style warning from checkpatch.pl. Use GNU extensions to create references to the results of problem macro arguments when they are evaluated so that they can be used safely multiple times. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm

[PATCH 2/2] Staging: gdm724x: LTE: Fix argument list not aligned with parenthesis.

2018-02-16 Thread Quytelda Kahja
Fix coding style warning from checkpatch.pl. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_lte.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index ff3fed

[PATCH] Staging: gdm724x: LTE: Fix trailing open parenthesis code style issue.

2018-02-16 Thread Quytelda Kahja
Fix a coding style problem causing warnings from checkpatch.pl. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/gdm724x/gdm_lte.c | 50 ++- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/drivers/staging/g

[PATCH] Staging: fwserial: remove unnecessary parenthesis

2018-01-31 Thread Quytelda Kahja
Removed parenthesis causing a coding style warning. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/fwserial/dma_fifo.c | 2 +- drivers/staging/fwserial/fwserial.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fwserial/dma_

[PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl.

2017-06-27 Thread Quytelda Kahja
Replace the literal function name "visorbus_create_instance" with the format specifier "%s" so it can be dynamically filled by the __func__ macro. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file

[PATCH] Staging: ion: fix code style warning from NULL comparisons

2017-06-27 Thread Quytelda Kahja
This patch replaces several instances where a pointer is compared to NULL (i.e., `ptr == NULL`) with `!ptr`, which is preferred. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/android/ion/ion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH] Replace the literal function name "visorbus_create_instance" with the format specifier "%s" so it can be dynamically filled by the __func__ macro.

2017-06-27 Thread Quytelda Kahja
Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 1c785d

[PATCH] Staging: visorbus: Fix coding style warning from checkpatch.pl.

2017-06-26 Thread Quytelda Kahja
Replace the literal function name "create_bus_instance" with the format specifier "%s" so it can be dynamically filled by the __func__ macro. Signed-off-by: Quytelda Kahja <quyte...@tamalin.org> --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file

<    1   2   3