staging: ks7010: ks-hostif.c: Lines should not end with a '('
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
@@ -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
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 '('Signed-off-by Sanjana Sanikommu <[email protected]>--- drivers/staging/ks7010/ks_hostif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/ks7010/ks_hostif.c +0
-0
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
-1msecs_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.
Quoted 3 lines
So it should be left like it is before.I would be discarding the changes.
Thanks for letting me know.
Sanjana