Skip to contentSkip to conversation

staging: ks7010: ks-hostif.c: Lines should not end with a '('

PATCH In review Sanjana Sanikommu 2 participants 3 messages Mar 17, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: ks7010: ks-hostif.c: Lines should not end with a '('

Start function arguments after initial bracket so that the line does not end with a opening bracket.
CHECK: Lines should not end with a '('

---
 drivers/staging/ks7010/ks_hostif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ks7010/ks_hostif.c +2 -2
index 06ebea0be118..7f1b41658e25 100644
@@ -75,8 +75,8 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
 
 	if (ps_status == PS_SNOOZE) {
 		ks_wlan_hw_wakeup_request(priv);
-		time_left = wait_for_completion_interruptible_timeout(
-				&priv->psstatus.wakeup_wait,
+		time_left = wait_for_completion_interruptible_timeout
+				(&priv->psstatus.wakeup_wait,
 				msecs_to_jiffies(20));
 		if (time_left <= 0) {
 			netdev_dbg(priv->net_dev, "wake up timeout or interrupted !!!\n");
Signature · 1 line
2.17.1
#1 lore raw
Quoted 14 lines · Sanjana Sanikommu

Start function arguments after initial bracket so that the line does not end with a opening bracket.
CHECK: Lines should not end with a '('

---
 drivers/staging/ks7010/ks_hostif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ks7010/ks_hostif.c +0 -0
index 06ebea0be118..7f1b41658e25 100644

drivers/staging/ks7010/ks_hostif.c static void ks_wlan_hw_wakeup_task(struct work_struct *work) · line 79

Quoted 7 lines
drivers/staging/ks7010/ks_hostif.c +2 -2
@@ -75,8 +75,8 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
 
 	if (ps_status == PS_SNOOZE) {
 		ks_wlan_hw_wakeup_request(priv);
-		time_left = wait_for_completion_interruptible_timeout(
-				&priv->psstatus.wakeup_wait,
+		time_left = wait_for_completion_interruptible_timeout
+				(&priv->psstatus.wakeup_wait,

This is not a good solution. It doesn't look like a function call if there is not a ( after the function name. Maybe there is no good solution in this case, because the function name is very long.

julia

Quoted 13 lines
drivers/staging/ks7010/ks_hostif.c +0 -1
 				msecs_to_jiffies(20));
 		if (time_left <= 0) {
 			netdev_dbg(priv->net_dev, "wake up timeout or interrupted !!!\n");
--

2.17.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/20190317064556.3603-1-sanjana99reddy99%40gmail.com.
For more options, visit https://groups.google.com/d/optout.