Tag: d40aa3372f90d478b6166df0321349b5aeb0aea8

nfsd: Remove assignments inside conditions

Author: Benoit Taine <benoit.taine@lip6.fr> Assignments should not happen inside an if conditional, but in the line before. This issue was reported by checkpatch. The semantic patch that makes this change is as follows (http://coccinelle.lip6.fr/): // @@ identifier i1; expression e1; statement S; @@ -if(!(i1 = e1)) S +i1 = e1; +if(!i1) +S // It has …

Continue reading