Author: Somya Anand <somyaanand214@gmail.com> Checkpatch.pl suggest to avoid assignment in if statement. This patch moves assignments out of the if statement and place it before the if statement. This is done using following coccinelle script. @@ expression E1; identifier p; statement S; @@ – if ((p = E1)) + p = E1; + if (p) …