Skip to contentSkip to conversation

Staging: rtl8712: Add * on subsequent lines in block comment

PATCH In review Dilek Uzulmez 2 participants 2 messages Feb 9, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8712: Add * on subsequent lines in block comment

From: Dilek Üzülmez <[email protected]>

This patch fixes the checkpatch.pl warning:
WARNING: Block comments use * on subsequent lines

---
 drivers/staging/rtl8712/hal_init.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/hal_init.c +4 -2
index 0a1c631..5b8b689 100644
@@ -297,7 +297,8 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
 
 		tmp8 = r8712_read8(padapter, 0x1025000A);
 		if (tmp8 & BIT(4)) /* When boot from EEPROM,
-				    & FW need more time to read EEPROM */
+				    * & FW need more time to read EEPROM
+				    */
 			i = 60;
 		else			/* boot from EFUSE */
 			i = 30;
@@ -331,7 +332,8 @@ uint rtl8712_hal_init(struct _adapter *padapter)
 		    r8712_read32(padapter, RCR));
 	val32 = r8712_read32(padapter, RCR);
 	r8712_write32(padapter, RCR, (val32 | BIT(26))); /* Enable RX TCP
-							    Checksum offload */
+							  * Checksum offload
+							  */
 	netdev_info(padapter->pnetdev, "2 RCR=0x%x\n",
 		    r8712_read32(padapter, RCR));
 	val32 = r8712_read32(padapter, RCR);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 15 lines · Dilek Uzulmez

From: Dilek Üzülmez <[email protected]>

This patch fixes the checkpatch.pl warning:
WARNING: Block comments use * on subsequent lines

---
 drivers/staging/rtl8712/hal_init.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rtl8712/hal_init.c +0 -0
index 0a1c631..5b8b689 100644

drivers/staging/rtl8712/hal_init.c static u8 rtl8712_dl_fw(struct _adapter *padapter) · line 301

Quoted 6 lines
drivers/staging/rtl8712/hal_init.c +2 -1
@@ -297,7 +297,8 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
 
                tmp8 = r8712_read8(padapter, 0x1025000A);
                if (tmp8 & BIT(4)) /* When boot from EEPROM,
-                                   & FW need more time to read EEPROM */
+                                   * & FW need more time to read EEPROM
+                                   */

Better move this comment one line above if(). This would fit in one line.

drivers/staging/rtl8712/hal_init.c uint rtl8712_hal_init(struct _adapter *padapter) · line 336

Quoted 10 lines
drivers/staging/rtl8712/hal_init.c +2 -1
                        i = 60;
                else                    /* boot from EFUSE */
                        i = 30;
@@ -331,7 +332,8 @@ uint rtl8712_hal_init(struct _adapter *padapter)
                    r8712_read32(padapter, RCR));
        val32 = r8712_read32(padapter, RCR);
        r8712_write32(padapter, RCR, (val32 | BIT(26))); /* Enable RX TCP
-                                                           Checksum offload */
+                                                         * Checksum offload
+                                                         */

The same here.

drivers/staging/rtl8712/hal_init.c uint rtl8712_hal_init(struct _adapter *padapter)

Quoted 4 lines
drivers/staging/rtl8712/hal_init.c +0 -1
        netdev_info(padapter->pnetdev, "2 RCR=0x%x\n",
                    r8712_read32(padapter, RCR));
        val32 = r8712_read32(padapter, RCR);
--

thanks,
Daniel.