Skip to contentSkip to conversation

Staging: rtl8188eu: core: Fix line over 80 characters

PATCH In review Hatice ERTÜRK 2 participants 2 messages Feb 21, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8188eu: core: Fix line over 80 characters

Fix checkpatch.pl issues with line over
80 characters in rtw_iol.c

---
 drivers/staging/rtl8188eu/core/rtw_iol.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_iol.c +2 -1
index cdcf0ea..0d1a246 100644
@@ -25,7 +25,8 @@ bool rtw_IOL_applied(struct adapter  *adapter)
 	if (1 == adapter->registrypriv.fw_iol)
 		return true;
 
-	if ((2 == adapter->registrypriv.fw_iol) && (!adapter_to_dvobj(adapter)->ishighspeed))
+	if ((2 == adapter->registrypriv.fw_iol) &&
+			 (!adapter_to_dvobj(adapter)->ishighspeed))
 		return true;
 	return false;
 }
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Hatice ERTÜRK

Fix checkpatch.pl issues with line over
80 characters in rtw_iol.c

---
 drivers/staging/rtl8188eu/core/rtw_iol.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_iol.c +0 -0
index cdcf0ea..0d1a246 100644

drivers/staging/rtl8188eu/core/rtw_iol.c bool rtw_IOL_applied(struct adapter *adapter) · line 29

Quoted 6 lines
drivers/staging/rtl8188eu/core/rtw_iol.c +2 -1
@@ -25,7 +25,8 @@ bool rtw_IOL_applied(struct adapter  *adapter)
 	if (1 == adapter->registrypriv.fw_iol)
 		return true;
 
-	if ((2 == adapter->registrypriv.fw_iol) && (!adapter_to_dvobj(adapter)->ishighspeed))
+	if ((2 == adapter->registrypriv.fw_iol) &&
+			 (!adapter_to_dvobj(adapter)->ishighspeed))

The choice of indentation distance seems random. It would be nicer to line up the conditions.

In neither case are the parentheses needed.

julia

Quoted 13 lines
drivers/staging/rtl8188eu/core/rtw_iol.c +0 -1
 		return true;
 	return false;
 }
--

1.9.1

--
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/1424526541-15280-1-git-send-email-haticeerturk27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.