staging: rtl8723bs: Remove unnecessary parentheses
PATCH v2 1/1 staging: rtl8723bs: Remove unnecessary parentheses
Challenge suggested by coccinelle
This patch removes unnecessary parentheses while returning a value and removes unnecessary space.
Using following semantic patch:
@@
local idexpression id;
@@
- return(id);
+ return id;
@@
local idexpression id;
@@
-return (id) ;
+return id;
---
Changes in v2:
-Add new semantic patch to drop spaces.
tmp/cocci-output-4620-ca634c-ioctl_linux.c renamed from staging/rtl8723bs/os_dep/ioctl_linux.c +2 -2
@@ -961,7 +961,7 @@ static int rtw_wx_set_pmkid(struct net_dif (pPMK->cmd ==IW_PMKSA_ADD ) {DBG_871X ("[rtw_wx_set_pmkid] IW_PMKSA_ADD!\n" );if (!memcmp (strIssueBssid, strZeroMacAddress,ETH_ALEN )) -return (intReturn); +return intReturn;else intReturn = true;
@@ -1489,7 +1489,7 @@ exit:DBG_871X ("DBG_IOCTL %s:%d return %d\n" , __func__, __LINE__, ret);#endif -return ret ; +return ret; }
tmp/cocci-output-4620-ca634c-ioctl_linux.c
Quoted 27 lines · Payal Kshirsagar
Challenge suggested by coccinelle
This patch removes unnecessary parentheses while returning a value and removes unnecessary space.
Using following semantic patch:@@
local idexpression id;
@@- return(id);
+ return id;@@
local idexpression id;
@@(quoted diff) +1
-1-return (id) ; +return id;Signed-off-by Payal Kshirsagar <[email protected]---
Changes in v2:
-Add new semantic patch to drop spaces.tmp/cocci-output-4620-ca634c-ioctl_linux.c renamed from staging/rtl8723bs/os_dep/ioctl_linux.c +0
-0
That is a _VERY_ odd diff, and obviously does not apply to the kernel tree. Did something go wrong when creating it?
Please fix up and resend.
thanks,
greg k-h
Quoted 26 lines · Greg KH
Quoted 25 lines · Payal Kshirsagar
Challenge suggested by coccinelle
This patch removes unnecessary parentheses while returning a value and removes unnecessary space.
Using following semantic patch:@@
local idexpression id;
@@- return(id);
+ return id;@@
local idexpression id;
@@(quoted diff) +1
-1-return (id) ; +return id;Signed-off-by Payal Kshirsagar <[email protected]---
Changes in v2:
-Add new semantic patch to drop spaces.
Quoted 8 lines
tmp/cocci-output-4620-ca634c-ioctl_linux.c
Quoted 2 lines
tmp/cocci-output-4620-ca634c-ioctl_linux.c renamed from staging/rtl8723bs/os_dep/ioctl_linux.c +0
-0That is a _VERY_ odd diff, and obviously does not apply to the kernel tree. Did something go wrong when creating it?
Please fix up and resend.
Okay,I will fix it and resend.
Thanks ,
Payal
thanks,
Quoted 14 lines
greg k-h
--
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/20190329161253.GA32685%40kroah.com
.
For more options, visit https://groups.google.com/d/optout.
Quoted 26 lines · Greg KH
Quoted 25 lines · Payal Kshirsagar
Challenge suggested by coccinelle
This patch removes unnecessary parentheses while returning a value and removes unnecessary space.
Using following semantic patch:@@
local idexpression id;
@@- return(id);
+ return id;@@
local idexpression id;
@@(quoted diff) +1
-1-return (id) ; +return id;Signed-off-by Payal Kshirsagar <[email protected]---
Changes in v2:
-Add new semantic patch to drop spaces.
Quoted 5 lines
tmp/cocci-output-4620-ca634c-ioctl_linux.c
Quoted 2 lines
tmp/cocci-output-4620-ca634c-ioctl_linux.c renamed from staging/rtl8723bs/os_dep/ioctl_linux.c +0
-0That is a _VERY_ odd diff, and obviously does not apply to the kernel tree. Did something go wrong when creating it?
It looks like the output of Coccinelle. Payal, you have to apply the diff that you get from Coccinelle to your kernel tree, check that it compiles, and then make a patch in the normal way.
julia
Quoted 14 lines
Please fix up and resend.
thanks,
greg k-h
--
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/20190329161253.GA32685%40kroah.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 36 lines · Julia Lawall
Quoted 26 lines · Greg KH
Quoted 25 lines · Payal Kshirsagar
Challenge suggested by coccinelle
This patch removes unnecessary parentheses while returning a value and removes unnecessary space.
Using following semantic patch:@@
local idexpression id;
@@- return(id);
+ return id;@@
local idexpression id;
@@(quoted diff) +1
-1-return (id) ; +return id;Signed-off-by Payal Kshirsagar <[email protected]---
Changes in v2:
-Add new semantic patch to drop spaces.Quoted 5 lines
tmp/cocci-output-4620-ca634c-ioctl_linux.c
Quoted 2 lines
tmp/cocci-output-4620-ca634c-ioctl_linux.c renamed from staging/rtl8723bs/os_dep/ioctl_linux.c +0
-0That is a _VERY_ odd diff, and obviously does not apply to the kernel tree. Did something go wrong when creating it?
Quoted 4 lines
It looks like the output of Coccinelle. Payal, you have to apply the diff that you get from Coccinelle to your kernel tree, check that it compiles, and then make a patch in the normal way.
Thank you for letting me know :)
Payal
julia
Quoted 20 lines
Quoted 10 lines
Please fix up and resend.
thanks,
greg k-h
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
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/20190329161253.GA32685%40kroah.com
.Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.