[PATCH v4 02/11] staging: r8188eu: reformat long computation lines

From: Deepak R Varma
Date: Thu Oct 20 2022 - 17:27:43 EST


Reformat long running computation instructions to improve code readability.
Address checkpatch script complaints like:
CHECK: line length of 171 exceeds 100 columns

Signed-off-by: Deepak R Varma <drv@xxxxxxxxx>
---

Changes in v4:
-- As the variable name is shorter now, the reformatting is more clearer.

Changes in v3:
-- None

Changes in v1 [actually v2]:
1. Further improve the formatting per feedback from gregkh@xxxxxxxxxxxxxxxxxxx


drivers/staging/r8188eu/core/rtw_br_ext.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c
index e509b8454e25..d4059f0fc362 100644
--- a/drivers/staging/r8188eu/core/rtw_br_ext.c
+++ b/drivers/staging/r8188eu/core/rtw_br_ext.c
@@ -212,7 +212,7 @@ static int __nat25_network_hash(unsigned char *addr)
unsigned long x;

x = addr[1] ^ addr[2] ^ addr[3] ^ addr[4] ^ addr[5] ^
- addr[6] ^ addr[7] ^ addr[8] ^ addr[9] ^ addr[10];
+ addr[6] ^ addr[7] ^ addr[8] ^ addr[9] ^ addr[10];

return x & (NAT25_HASH_SIZE - 1);
} else if (addr[0] == NAT25_APPLE) {
@@ -224,16 +224,16 @@ static int __nat25_network_hash(unsigned char *addr)
} else if (addr[0] == NAT25_PPPOE) {
unsigned long x;

- x = addr[0] ^ addr[1] ^ addr[2] ^ addr[3] ^ addr[4] ^ addr[5] ^ addr[6] ^ addr[7] ^ addr[8];
+ x = addr[0] ^ addr[1] ^ addr[2] ^ addr[3] ^ addr[4] ^
+ addr[5] ^ addr[6] ^ addr[7] ^ addr[8];

return x & (NAT25_HASH_SIZE - 1);
} else if (addr[0] == NAT25_IPV6) {
unsigned long x;

- x = addr[1] ^ addr[2] ^ addr[3] ^ addr[4] ^ addr[5] ^
- addr[6] ^ addr[7] ^ addr[8] ^ addr[9] ^ addr[10] ^
- addr[11] ^ addr[12] ^ addr[13] ^ addr[14] ^ addr[15] ^
- addr[16];
+ x = addr[1] ^ addr[2] ^ addr[3] ^ addr[4] ^ addr[5] ^ addr[6] ^
+ addr[7] ^ addr[8] ^ addr[9] ^ addr[10] ^ addr[11] ^ addr[12] ^
+ addr[13] ^ addr[14] ^ addr[15] ^ addr[16];

return x & (NAT25_HASH_SIZE - 1);
} else {
--
2.30.2