staging: rtl8712: change type of variables
PATCH 1/1 staging: rtl8712: change type of variables
It would be better to declare variables having boolean value as bool rather than u8. Change variable type u8 to type bool.
--- drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/rtl8712_efuse.c +2 -2
@@ -23,9 +23,9 @@/* reserve 3 bytes for HW stop read */ static int efuse_available_max_size =EFUSE_MAX_SIZE -3 /*0x1FD*/ ; -static void efuse_reg_ctrl (struct _adapter *padapter,u8 power_on) +static void efuse_reg_ctrl (struct _adapter *padapter,bool power_on) { -u8 tmpu8 =0 ; +bool tmpu8 =0 ;if (power_on) {/* -----------------e-fuse pwr & clk reg ctrl ---------------
Signature · 1 line
2.7.4
Quoted 13 lines · Payal Kshirsagar
It would be better to declare variables having boolean value as bool rather than u8. Change variable type u8 to type bool.
Signed-off-by Payal Kshirsagar <[email protected]>--- drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/rtl8712/rtl8712_efuse.c +0
-0
drivers/staging/rtl8712/rtl8712_efuse.c line 28
Quoted 8 lines
drivers/staging/rtl8712/rtl8712_efuse.c +2
-2@@ -23,9 +23,9 @@/* reserve 3 bytes for HW stop read */ static int efuse_available_max_size =EFUSE_MAX_SIZE -3 /*0x1FD*/ ; -static void efuse_reg_ctrl (struct _adapter *padapter,u8 power_on) +static void efuse_reg_ctrl (struct _adapter *padapter,bool power_on) { -u8 tmpu8 =0 ; +bool tmpu8 =0 ;
tmpu8 is not a boolean. A boolean value is either true or false.
julia
Quoted 13 lines
drivers/staging/rtl8712/rtl8712_efuse.c +0
-1if (power_on) {/* -----------------e-fuse pwr & clk reg ctrl --------------- -- 2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1553358841-3093-1-git-send-email-payal.s.kshirsagar.98%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 29 lines · Julia Lawall
Review
Quoted 9 lines · Payal Kshirsagar
It would be better to declare variables having boolean value as bool rather than u8. Change variable type u8 to type bool.
Signed-off-by Payal Kshirsagar <[email protected]>--- drivers/staging/rtl8712/rtl8712_efuse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/staging/rtl8712/rtl8712_efuse.cdrivers/staging/rtl8712/rtl8712_efuse.c line 28
Quoted 12 lines
index 3ff64e2..dde1255 100644
drivers/staging/rtl8712/rtl8712_efuse.c +2
-2@@ -23,9 +23,9 @@/* reserve 3 bytes for HW stop read */ static int efuse_available_max_size =EFUSE_MAX_SIZE -3 /*0x1FD*/ ; -static void efuse_reg_ctrl (struct _adapter *padapter,u8 power_on) +static void efuse_reg_ctrl (struct _adapter *padapter,bool power_on) { -u8 tmpu8 =0 ; +bool tmpu8 =0 ;tmpu8 is not a boolean. A boolean value is either true or false.
Quoted 1 line
Sorry, I mistakenly did that.
I will send v2 with the corrections.
thanks,
payal
Quoted 21 lines
julia
drivers/staging/rtl8712/rtl8712_efuse.c line 30
Quoted 3 lines
drivers/staging/rtl8712/rtl8712_efuse.c +0
-0if (power_on) {/* -----------------e-fuse pwr & clk reg ctrl ---------------
Quoted 5 lines
drivers/staging/rtl8712/rtl8712_efuse.c +0
-1--2.7.4
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
To post to this group, send email to [email protected]. To view this discussion on the web visit
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.