Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: core: rtw_cmd: Remove cast to pointer types in kfree

2017-10-07 Thread Srishti Sharma
On Sun, Oct 8, 2017 at 1:36 AM, Julia Lawall wrote: > > > On Sun, 8 Oct 2017, Srishti Sharma wrote: > >> On Sat, Oct 7, 2017 at 11:42 PM, Julia Lawall wrote: >> > >> > >> > On Sat, 7 Oct 2017, Srishti Sharma wrote: >> > >> >> The cast to pointer types in kfree is not needed and can be dropped. >>

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: core: rtw_cmd: Remove cast to pointer types in kfree

2017-10-07 Thread Julia Lawall
On Sun, 8 Oct 2017, Srishti Sharma wrote: > On Sat, Oct 7, 2017 at 11:42 PM, Julia Lawall wrote: > > > > > > On Sat, 7 Oct 2017, Srishti Sharma wrote: > > > >> The cast to pointer types in kfree is not needed and can be dropped. > >> Done using the following semantic by coccinelle. > >> > >> @r

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: core: rtw_cmd: Remove cast to pointer types in kfree

2017-10-07 Thread Srishti Sharma
On Sat, Oct 7, 2017 at 11:42 PM, Julia Lawall wrote: > > > On Sat, 7 Oct 2017, Srishti Sharma wrote: > >> The cast to pointer types in kfree is not needed and can be dropped. >> Done using the following semantic by coccinelle. >> >> @r@ >> type T,P; >> T* x; >> @@ >> >> kfree( >> -(P *) >> x ) >>

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: core: rtw_cmd: Remove cast to pointer types in kfree

2017-10-07 Thread Julia Lawall
On Sat, 7 Oct 2017, Srishti Sharma wrote: > The cast to pointer types in kfree is not needed and can be dropped. > Done using the following semantic by coccinelle. > > @r@ > type T,P; > T* x; > @@ > > kfree( > -(P *) > x ) > > Signed-off-by: Srishti Sharma > --- > drivers/staging/rtl8723bs/cor