1
This patchset refactors the rtl8723bs driver by replacing
2
integer literals (1 and 0) with true and false in instances where
3
values are already defined with true or false but some defination
4
contains (1 or 0)
1
5
2
This patchset refactors the rtl8723bs driver by replacing
6
Changes in v2:
3
integer literals (1 and 0) with true and false,
7
    - [PATCH 1/3]: Rename the subject line and improve on the subject
8
     body
9
    - [PATCH 2/3]: Rename the subject line and improve on the subject
10
     body
11
    - [PATCH 3/3]: Rename the subject line and improve in the
12
     subject body
4
improving code readability and consistency with standard kernel practices.
13
improving code readability and consistency with standard kernel practices.
5
The transformation was performed using Coccinelle.
14
The transformation was performed using Coccinelle.
6
15
7
below is the coccinelle script used:
16
below is the coccinelle script used:
8
@initialize:ocaml@
17
@initialize:ocaml@
...
...
56
- 0
65
- 0
57
+ false
66
+ false
58
)
67
)
59
68
60
Erick Karanja (3):
69
Erick Karanja (3):
61
staging: rtl8723bs: Use true/false instead of 1/0
70
staging: rtl8723bs: Modify struct rx_pkt_attrib attribute bdecrypted
62
staging: rtl8723bs: Use true/false instead of 1/0
71
staging: rtl8723bs: Modify struct sta_info attribute qos_option
63
staging: rtl8723bs: Use true/false instead of 1/0
72
staging: rtl8723bs: Modify struct sta_info attribute qos_option and
73
ieee8021x_blocked
64
74
65
drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++++++------
75
drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++++++------
66
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++--
76
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++--
67
drivers/staging/rtl8723bs/core/rtw_recv.c | 2 +-
77
drivers/staging/rtl8723bs/core/rtw_recv.c | 2 +-
68
3 files changed, 9 insertions(+), 9 deletions(-)
78
3 files changed, 9 insertions(+), 9 deletions(-)
69
79
70
--
80
--
71
2.43.0
81
2.43.0
diff view generated by jsdifflib
1
standardize boolean representation by replacing 1/0
1
Standardize boolean representation by ensuring consistency,
2
with true/false in cases where boolean logic is implied.
2
replace instances of 1/0 with true/false where boolean logic is implied,
3
This improves code clarity and aligns with the kernel’s bool type usage.
3
as some definitions already use true/false.
4
This improves code clarity and aligns with the kernel’s bool type usage.
4
5
5
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
6
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
6
---
7
---
7
drivers/staging/rtl8723bs/core/rtw_recv.c | 2 +-
8
drivers/staging/rtl8723bs/core/rtw_recv.c | 2 +-
8
1 file changed, 1 insertion(+), 1 deletion(-)
9
1 file changed, 1 insertion(+), 1 deletion(-)
...
...
diff view generated by jsdifflib
1
Standardize boolean representation by replacing 1/0
1
Standardize boolean representation by ensuring consistency,
2
with true/false in cases where boolean logic is implied.
2
replacing instances of 1/0 with true/false where boolean logic
3
is implied, as some definitions already use true/false.
3
This improves code clarity and aligns with the kernel’s bool type usage.
4
This improves code clarity and aligns with the kernel’s bool type usage.
4
5
5
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
6
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
6
---
7
---
7
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++--
8
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++--
...
...
diff view generated by jsdifflib
1
Standardize boolean representation by replacing 1/0
1
Standardize boolean representation by ensuring consistency,
2
with true/false in cases where boolean logic is implied.
2
replacing instances of 1/0 with true/false where boolean
3
logic is implied, as some definitions already use true/false.
3
This improves code clarity and aligns with the kernel’s bool type usage.
4
This improves code clarity and aligns with the kernel’s bool type usage.
4
5
5
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
6
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
6
---
7
---
7
drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++++++------
8
drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++++++------
...
...
diff view generated by jsdifflib