Author: Bhumika Goyal <bhumirks@gmail.com> Use list_for_each_entry instead of list_for_each and list_entry as it simplifies the code. Done using coccinelle: @@ type T,T2; identifier I1,I2; expression e1,e2; iterator name list_for_each_entry; iterator name list_for_each; @@ – T *I1; … – list_for_each(I1,e1) + list_for_each_entry(I2,e1,e2) { …when!=T *I1; – I2=list_entry(I1,T2,e2); … } …when!=I2; @@ type T,T2,T3; identifier I1,I2,I3; expression …
Privacy Overview
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.