Skip to contentSkip to conversation

Staging: rtl8712: hal_init.c: fix line over 80 characters

PATCH In review [email protected] 2 participants 2 messages Mar 23, 2019 – Mar 24, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8712: hal_init.c: fix line over 80 characters

From: Anushka Shukla <[email protected]>

-Fix line over 80 characters
-Change the position of comment according to Linux kernel coding style

---
 drivers/staging/rtl8712/hal_init.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8712/hal_init.c +2 -1
index 4c6519ccab30..382cdeeee272 100644
@@ -100,7 +100,8 @@ static void fill_fwpriv(struct _adapter *padapter, struct fw_priv *pfwpriv)
 		pfwpriv->rf_config = RTL8712_RFC_1T2R;
 	}
 	pfwpriv->mp_mode = (pregpriv->mp_mode == 1) ? 1 : 0;
-	pfwpriv->vcs_type = pregpriv->vrtl_carrier_sense; /* 0:off 1:on 2:auto */
+	/* 0:off 1:on 2:auto */
+	pfwpriv->vcs_type = pregpriv->vrtl_carrier_sense; 
 	pfwpriv->vcs_mode = pregpriv->vcs_type; /* 1:RTS/CTS 2:CTS to self */
 	/* default enable turbo_mode */
 	pfwpriv->turbo_mode = ((pregpriv->wifi_test == 1) ? 0 : 1);
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 15 lines · On Sat, Mar 23, 2019 at 03:41:28PM +0530, [email protected] wrote:

From: Anushka Shukla <[email protected]>

(quoted diff) +0 -2
-Fix line over 80 characters
-Change the position of comment according to Linux kernel coding style
---
 drivers/staging/rtl8712/hal_init.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8712/hal_init.c +0 -0
index 4c6519ccab30..382cdeeee272 100644

drivers/staging/rtl8712/hal_init.c static void fill_fwpriv(struct _adapter *padapter, struct fw_priv *pfwpriv) · line 104

Quoted 6 lines
drivers/staging/rtl8712/hal_init.c +2 -1
@@ -100,7 +100,8 @@ static void fill_fwpriv(struct _adapter *padapter, struct fw_priv *pfwpriv)
 		pfwpriv->rf_config = RTL8712_RFC_1T2R;
 	}
 	pfwpriv->mp_mode = (pregpriv->mp_mode == 1) ? 1 : 0;
-	pfwpriv->vcs_type = pregpriv->vrtl_carrier_sense; /* 0:off 1:on 2:auto */
+	/* 0:off 1:on 2:auto */
+	pfwpriv->vcs_type = pregpriv->vrtl_carrier_sense; 

You added trailing whitespace :(

ALWAYS check your patches with scripts/checkpatch.pl, that is what it is there for.

thanks,

greg k-h