staging: rtl8188eu: core: removes unecessary parenthesis
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/4 staging: rtl8188eu: core: removes unecessary parenthesis
Removes unecessary parenthesis from rtw_led.c file that were causing checkpatch warnings.
--- drivers/staging/rtl8188eu/core/rtw_led.c | 68 ++++++++++++++++---------------- 1 file changed, 34 insertions(+), 34 deletions(-)
drivers/staging/rtl8188eu/core/rtw_led.c +34 -34
@@ -30,7 +30,7 @@ void BlinkTimerCallback(unsigned long data)if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped))return ; -schedule_work (&(pLed->BlinkWorkItem)); +schedule_work (&pLed->BlinkWorkItem); }/* */
@@ -72,10 +72,10 @@ void InitLed871x(struct adapter *padapter, struct LED_871x *pLed)ResetLedStatus (pLed); -setup_timer (&(pLed->BlinkTimer), BlinkTimerCallback, +setup_timer (&pLed->BlinkTimer, BlinkTimerCallback, (unsigned long )pLed); -INIT_WORK (&(pLed->BlinkWorkItem), BlinkWorkItemCallback); +INIT_WORK (&pLed->BlinkWorkItem, BlinkWorkItemCallback); }
@@ -85,8 +85,8 @@ void InitLed871x(struct adapter *padapter, struct LED_871x *pLed)/* */ void DeInitLed871x (struct LED_871x *pLed) { -cancel_work_sync (&(pLed->BlinkWorkItem)); -del_timer_sync (&(pLed->BlinkTimer)); +cancel_work_sync (&pLed->BlinkWorkItem); +del_timer_sync (&pLed->BlinkTimer);ResetLedStatus (pLed); }
@@ -99,7 +99,7 @@ void DeInitLed871x(struct LED_871x *pLed)static void SwLedBlink1 (struct LED_871x *pLed) {struct adapter *padapter = pLed->padapter; -struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); +struct mlme_priv *pmlmepriv = &padapter->mlmepriv;u8 bStopBlinking = false;/* Change LED according to BlinkingLedState specified. */
@@ -247,9 +247,9 @@ static void SwLedBlink1(struct LED_871x *pLed)/* ALPHA, added by chiyoko, 20090106 */ static void SwLedControlMode1 (struct adapter *padapter,enum LED_CTL_MODE LedAction) { -struct led_priv *ledpriv = &(padapter->ledpriv); -struct LED_871x *pLed = &(ledpriv->SwLed0); -struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); +struct led_priv *ledpriv = &padapter->ledpriv; +struct LED_871x *pLed = &ledpriv->SwLed0; +struct mlme_priv *pmlmepriv = &padapter->mlmepriv;switch (LedAction) {case LED_CTL_POWER_ON :
@@ -259,11 +259,11 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActif (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedLinkBlinkInProgress = false; }if (pLed->bLedBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedBlinkInProgress = false; }
@@ -282,11 +282,11 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActif (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false; }if (pLed->bLedBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedBlinkInProgress = false; } pLed->bLedLinkBlinkInProgress = true;
@@ -306,15 +306,15 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActif (IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false; }if (pLed->bLedLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedLinkBlinkInProgress = false; }if (pLed->bLedBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedBlinkInProgress = false; } pLed->bLedScanBlinkInProgress = true;
@@ -334,11 +334,11 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActif (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false; }if (pLed->bLedLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedLinkBlinkInProgress = false; } pLed->bLedBlinkInProgress = true;
@@ -356,19 +356,19 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActcase LED_CTL_START_WPS_BOTTON :if (!pLed->bLedWPSBlinkInProgress) {if (pLed->bLedNoLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false; }if (pLed->bLedLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedLinkBlinkInProgress = false; }if (pLed->bLedBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedBlinkInProgress = false; }if (pLed->bLedScanBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedScanBlinkInProgress = false; } pLed->bLedWPSBlinkInProgress = true;
@@ -383,23 +383,23 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActbreak ;case LED_CTL_STOP_WPS :if (pLed->bLedNoLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false; }if (pLed->bLedLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedLinkBlinkInProgress = false; }if (pLed->bLedBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedBlinkInProgress = false; }if (pLed->bLedScanBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedScanBlinkInProgress = false; }if (pLed->bLedWPSBlinkInProgress) -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer);else pLed->bLedWPSBlinkInProgress = true; pLed->CurrLedState =LED_BLINK_WPS_STOP ;
@@ -415,7 +415,7 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActbreak ;case LED_CTL_STOP_WPS_FAIL :if (pLed->bLedWPSBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedWPSBlinkInProgress = false; } pLed->bLedNoLinkBlinkInProgress = true;
@@ -431,23 +431,23 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedAct pLed->CurrLedState =RTW_LED_OFF ; pLed->BlinkingLedState =RTW_LED_OFF ;if (pLed->bLedNoLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false; }if (pLed->bLedLinkBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedLinkBlinkInProgress = false; }if (pLed->bLedBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedBlinkInProgress = false; }if (pLed->bLedWPSBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedWPSBlinkInProgress = false; }if (pLed->bLedScanBlinkInProgress) { -del_timer_sync (&(pLed->BlinkTimer)); +del_timer_sync (&pLed->BlinkTimer); pLed->bLedScanBlinkInProgress = false; }SwLedOff (padapter, pLed);
@@ -475,7 +475,7 @@ void BlinkHandler(struct LED_871x *pLed)void LedControl8188eu (struct adapter *padapter,enum LED_CTL_MODE LedAction) { -struct led_priv *ledpriv = &(padapter->ledpriv); +struct led_priv *ledpriv = &padapter->ledpriv;if ((padapter->bSurpriseRemoved) || (padapter->bDriverStopped) || (!padapter->hw_init_completed))
Signature · 1 line
2.10.0
PATCH 2/4 staging: rtl8188eu: core: formats long lines and comment blocks
In reply to a message not in the archiveThis patch fixes lines over 80 characters that were causing checkpatch issues and rewrites some comment blocks to match coding style.
--- drivers/staging/rtl8188eu/core/rtw_led.c | 58 ++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 21 deletions(-)
drivers/staging/rtl8188eu/core/rtw_led.c +37 -21
@@ -17,11 +17,11 @@#include <drv_types.h> #include "rtw_led.h" -/* */ -/* Description: */ -/* Callback function of LED BlinkTimer, */ -/* it just schedules to corresponding BlinkWorkItem/led_blink_hdl */ -/* */ +/* Description: +* Callback function of LED BlinkTimer, +* it just schedules to corresponding +* BlinkWorkItem/led_blink_hdl +*/ void BlinkTimerCallback (unsigned long data) {struct LED_871x *pLed = (struct LED_871x *)data;
@@ -39,7 +39,9 @@ void BlinkTimerCallback(unsigned long data)/* */ void BlinkWorkItemCallback (struct work_struct *work) { - struct LED_871x *pLed = container_of(work, struct LED_871x, BlinkWorkItem); +struct LED_871x *pLed =container_of (work, + struct LED_871x, + BlinkWorkItem);BlinkHandler (pLed); }
@@ -52,11 +54,18 @@ void ResetLedStatus(struct LED_871x *pLed) pLed->CurrLedState =RTW_LED_OFF ;/* Current LED state. */ pLed->bLedOn = false;/* true if LED is ON, false if LED is OFF. */ - pLed->bLedBlinkInProgress = false;/* true if it is blinking, false o.w.. */ + pLed->bLedBlinkInProgress = false;/* true if it is blinking, +* false o.w.. +*/ pLed->bLedWPSBlinkInProgress = false; - pLed->BlinkTimes =0 ;/* Number of times to toggle led state for blinking. */ - pLed->BlinkingLedState =LED_UNKNOWN ;/* Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are. */ + pLed->BlinkTimes =0 ;/* Number of times to toggle led state +* for blinking. +*/ + pLed->BlinkingLedState =LED_UNKNOWN ;/* Next state for blinking, +* either RTW_LED_ON or +* RTW_LED_OFF are. +*/ pLed->bLedNoLinkBlinkInProgress = false; pLed->bLedLinkBlinkInProgress = false;
@@ -90,11 +99,11 @@ void DeInitLed871x(struct LED_871x *pLed)ResetLedStatus (pLed); } -/* */ -/* Description: */ -/* Implementation of LED blinking behavior. */ -/* It toggle off LED and schedule corresponding timer if necessary. */ -/* */ +/* Description: +* Implementation of LED blinking behavior. +* It toggle off LED and schedule corresponding +* timer if necessary. +*/ static void SwLedBlink1 (struct LED_871x *pLed) {
@@ -105,10 +114,12 @@ static void SwLedBlink1(struct LED_871x *pLed)/* Change LED according to BlinkingLedState specified. */ if (pLed->BlinkingLedState ==RTW_LED_ON ) {SwLedOn (padapter, pLed); -RT_TRACE (_module_rtl8712_led_c_, _drv_info_, ("Blinktimes (%d): turn on\n" , pLed->BlinkTimes)); +RT_TRACE (_module_rtl8712_led_c_, _drv_info_, + ("Blinktimes (%d): turn on\n" , pLed->BlinkTimes)); }else {SwLedOff (padapter, pLed); -RT_TRACE (_module_rtl8712_led_c_, _drv_info_, ("Blinktimes (%d): turn off\n" , pLed->BlinkTimes)); +RT_TRACE (_module_rtl8712_led_c_, _drv_info_, + ("Blinktimes (%d): turn off\n" , pLed->BlinkTimes)); }if (padapter->pwrctrlpriv.rf_pwrstate != rf_on) {
@@ -245,7 +256,8 @@ static void SwLedBlink1(struct LED_871x *pLed) }/* ALPHA, added by chiyoko, 20090106 */ -static void SwLedControlMode1 (struct adapter *padapter,enum LED_CTL_MODE LedAction) +static void SwLedControlMode1 (struct adapter *padapter, +enum LED_CTL_MODE LedAction) {struct led_priv *ledpriv = &padapter->ledpriv;struct LED_871x *pLed = &ledpriv->SwLed0;
@@ -256,7 +268,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActcase LED_CTL_START_TO_LINK :case LED_CTL_NO_LINK :if (!pLed->bLedNoLinkBlinkInProgress) { -if (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed)) +if (pLed->CurrLedState ==LED_BLINK_SCAN || +IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer);
@@ -279,7 +292,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActbreak ;case LED_CTL_LINK :if (!pLed->bLedLinkBlinkInProgress) { -if (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed)) +if (pLed->CurrLedState ==LED_BLINK_SCAN || +IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer);
@@ -331,7 +345,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActcase LED_CTL_TX :case LED_CTL_RX :if (!pLed->bLedBlinkInProgress) { -if (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed)) +if (pLed->CurrLedState ==LED_BLINK_SCAN || +IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer);
@@ -456,7 +471,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActbreak ; } -RT_TRACE (_module_rtl8712_led_c_, _drv_info_, ("Led %d\n" , pLed->CurrLedState)); +RT_TRACE (_module_rtl8712_led_c_, _drv_info_, + ("Led %d\n" , pLed->CurrLedState)); }/* */
Signature · 1 line
2.10.0
Re: [Outreachy kernel] [PATCH 2/4] staging: rtl8188eu: core: formats long lines and comment blocks
Quoted 66 lines · Juliana Rodrigues
This patch fixes lines over 80 characters that were causing checkpatch issues and rewrites some comment blocks to match coding style.
Signed-off-by Juliana Rodrigues <[email protected]>--- drivers/staging/rtl8188eu/core/rtw_led.c | 58 ++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 21 deletions(-)drivers/staging/rtl8188eu/core/rtw_led.c +18
-9@@ -17,11 +17,11 @@#include <drv_types.h> #include "rtw_led.h" -/* */ -/* Description: */ -/* Callback function of LED BlinkTimer, */ -/* it just schedules to corresponding BlinkWorkItem/led_blink_hdl */ -/* */ +/* Description: +* Callback function of LED BlinkTimer, +* it just schedules to corresponding +* BlinkWorkItem/led_blink_hdl +*/ void BlinkTimerCallback (unsigned long data) {struct LED_871x *pLed = (struct LED_871x *)data;@@ -39,7 +39,9 @@ void BlinkTimerCallback(unsigned long data)/* */ void BlinkWorkItemCallback (struct work_struct *work) { - struct LED_871x *pLed = container_of(work, struct LED_871x, BlinkWorkItem); +struct LED_871x *pLed =container_of (work, + struct LED_871x, + BlinkWorkItem);BlinkHandler (pLed); }@@ -52,11 +54,18 @@ void ResetLedStatus(struct LED_871x *pLed) pLed->CurrLedState =RTW_LED_OFF ;/* Current LED state. */ pLed->bLedOn = false;/* true if LED is ON, false if LED is OFF. */ - pLed->bLedBlinkInProgress = false;/* true if it is blinking, false o.w.. */ + pLed->bLedBlinkInProgress = false;/* true if it is blinking, +* false o.w.. +*/ pLed->bLedWPSBlinkInProgress = false; - pLed->BlinkTimes =0 ;/* Number of times to toggle led state for blinking. */ - pLed->BlinkingLedState =LED_UNKNOWN ;/* Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are. */ + pLed->BlinkTimes =0 ;/* Number of times to toggle led state +* for blinking. +*/ + pLed->BlinkingLedState =LED_UNKNOWN ;/* Next state for blinking, +* either RTW_LED_ON or +* RTW_LED_OFF are. +*/ pLed->bLedNoLinkBlinkInProgress = false; pLed->bLedLinkBlinkInProgress = false;@@ -90,11 +99,11 @@ void DeInitLed871x(struct LED_871x *pLed)ResetLedStatus (pLed); }
drivers/staging/rtl8188eu/core/rtw_led.c void DeInitLed871x(struct LED_871x *pLed) · line 106
Quoted 10 lines
drivers/staging/rtl8188eu/core/rtw_led.c +5
-5-/* */ -/* Description: */ -/* Implementation of LED blinking behavior. */ -/* It toggle off LED and schedule corresponding timer if necessary. */ -/* */ +/* Description: +* Implementation of LED blinking behavior. +* It toggle off LED and schedule corresponding +* timer if necessary. +*/
Hmm, you have adjusted the comment in a smaller numbered patch in the series. I have the impression that the patches are numbered in the wrong order?
In any case, the text is not appropriate for a function comment, See kernel-documentation.rst
and examples in other files.
julia
Quoted 78 lines
drivers/staging/rtl8188eu/core/rtw_led.c +14
-8static void SwLedBlink1 (struct LED_871x *pLed) {@@ -105,10 +114,12 @@ static void SwLedBlink1(struct LED_871x *pLed)/* Change LED according to BlinkingLedState specified. */ if (pLed->BlinkingLedState ==RTW_LED_ON ) {SwLedOn (padapter, pLed); -RT_TRACE (_module_rtl8712_led_c_, _drv_info_, ("Blinktimes (%d): turn on\n" , pLed->BlinkTimes)); +RT_TRACE (_module_rtl8712_led_c_, _drv_info_, + ("Blinktimes (%d): turn on\n" , pLed->BlinkTimes)); }else {SwLedOff (padapter, pLed); -RT_TRACE (_module_rtl8712_led_c_, _drv_info_, ("Blinktimes (%d): turn off\n" , pLed->BlinkTimes)); +RT_TRACE (_module_rtl8712_led_c_, _drv_info_, + ("Blinktimes (%d): turn off\n" , pLed->BlinkTimes)); }if (padapter->pwrctrlpriv.rf_pwrstate != rf_on) {@@ -245,7 +256,8 @@ static void SwLedBlink1(struct LED_871x *pLed) }/* ALPHA, added by chiyoko, 20090106 */ -static void SwLedControlMode1 (struct adapter *padapter,enum LED_CTL_MODE LedAction) +static void SwLedControlMode1 (struct adapter *padapter, +enum LED_CTL_MODE LedAction) {struct led_priv *ledpriv = &padapter->ledpriv;struct LED_871x *pLed = &ledpriv->SwLed0;@@ -256,7 +268,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActcase LED_CTL_START_TO_LINK :case LED_CTL_NO_LINK :if (!pLed->bLedNoLinkBlinkInProgress) { -if (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed)) +if (pLed->CurrLedState ==LED_BLINK_SCAN || +IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer);@@ -279,7 +292,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActbreak ;case LED_CTL_LINK :if (!pLed->bLedLinkBlinkInProgress) { -if (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed)) +if (pLed->CurrLedState ==LED_BLINK_SCAN || +IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer);@@ -331,7 +345,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActcase LED_CTL_TX :case LED_CTL_RX :if (!pLed->bLedBlinkInProgress) { -if (pLed->CurrLedState ==LED_BLINK_SCAN ||IS_LED_WPS_BLINKING (pLed)) +if (pLed->CurrLedState ==LED_BLINK_SCAN || +IS_LED_WPS_BLINKING (pLed))return ;if (pLed->bLedNoLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer);@@ -456,7 +471,8 @@ static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedActbreak ; } -RT_TRACE (_module_rtl8712_led_c_, _drv_info_, ("Led %d\n" , pLed->CurrLedState)); +RT_TRACE (_module_rtl8712_led_c_, _drv_info_, + ("Led %d\n" , pLed->CurrLedState)); }/* */ --2.10.0
--
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/20161008204844.GA8624%40spock.
For more options, visit https://groups.google.com/d/optout.
Greg KH
maintainerRe: [PATCH 2/4] staging: rtl8188eu: core: formats long lines and comment blocks
In reply to Juliana RodriguesQuoted 2 lines · Juliana Rodrigues
This patch fixes lines over 80 characters that were causing checkpatch issues and rewrites some comment blocks to match coding style.
Do not do multiple different things in the same patch, break it up into one-type-of-thing-per-patch.
thanks,
greg k-h
PATCH 3/4 staging: rtl8188eu: core: removes extra blank lines
In reply to a message not in the archiveRemoves unecessary blank lines that were causing checkpatch issues.
--- drivers/staging/rtl8188eu/core/rtw_led.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_led.c +0 -1
@@ -87,7 +87,6 @@ void InitLed871x(struct adapter *padapter, struct LED_871x *pLed)INIT_WORK (&pLed->BlinkWorkItem, BlinkWorkItemCallback); } -/* */ /* Description: */ /* DeInitialize an LED_871x object. */
Signature · 1 line
2.10.0
Re: [Outreachy kernel] [PATCH 3/4] staging: rtl8188eu: core: removes extra blank lines
Quoted 12 lines · Juliana Rodrigues
Removes unecessary blank lines that were causing checkpatch issues.
Signed-off-by Juliana Rodrigues <[email protected]>--- drivers/staging/rtl8188eu/core/rtw_led.c | 1 - 1 file changed, 1 deletion(-)drivers/staging/rtl8188eu/core/rtw_led.c +0
-0
drivers/staging/rtl8188eu/core/rtw_led.c void InitLed871x(struct adapter *padapter, struct LED_871x *pLed) · line 92
Quoted 7 lines
drivers/staging/rtl8188eu/core/rtw_led.c +0
-1@@ -87,7 +87,6 @@ void InitLed871x(struct adapter *padapter, struct LED_871x *pLed)INIT_WORK (&pLed->BlinkWorkItem, BlinkWorkItemCallback); } -/* */ /* Description: */ /* DeInitialize an LED_871x object. */
It would be for another patch, but this is definitely not the proper format for a comment describing a function definition.
julia
Quoted 10 lines
--
2.10.0--
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/20161008204909.GA8819%40spock.
For more options, visit https://groups.google.com/d/optout.
Greg KH
maintainerRe: [PATCH 3/4] staging: rtl8188eu: core: removes extra blank lines
In reply to Juliana RodriguesQuoted 1 line · Juliana Rodrigues
Removes unecessary blank lines that were causing checkpatch issues.
Only one blank line was removed :)
PATCH 4/4 staging: rtl8188eu: core: fixes tabstop alignment
In reply to a message not in the archiveFixes a tabstop alignment checkpatch issue by removing extra blank spaces.
--- drivers/staging/rtl8188eu/core/rtw_led.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_led.c +3 -3
@@ -339,7 +339,7 @@ static void SwLedControlMode1(struct adapter *padapter, pLed->BlinkingLedState =RTW_LED_ON ;mod_timer (&pLed->BlinkTimer, jiffies +msecs_to_jiffies (LED_BLINK_SCAN_INTERVAL_ALPHA )); - } + }break ;case LED_CTL_TX :case LED_CTL_RX :
@@ -368,7 +368,7 @@ static void SwLedControlMode1(struct adapter *padapter,break ;case LED_CTL_START_WPS :/* wait until xinpin finish */ case LED_CTL_START_WPS_BOTTON : -if (!pLed->bLedWPSBlinkInProgress) { +if (!pLed->bLedWPSBlinkInProgress) {if (pLed->bLedNoLinkBlinkInProgress) {del_timer_sync (&pLed->BlinkTimer); pLed->bLedNoLinkBlinkInProgress = false;
@@ -393,7 +393,7 @@ static void SwLedControlMode1(struct adapter *padapter, pLed->BlinkingLedState =RTW_LED_ON ;mod_timer (&pLed->BlinkTimer, jiffies +msecs_to_jiffies (LED_BLINK_SCAN_INTERVAL_ALPHA )); - } + }break ;case LED_CTL_STOP_WPS :if (pLed->bLedNoLinkBlinkInProgress) {
Signature · 1 line
2.10.0