Tag: 5c7d08c32d0cb96ec0e831539bb68b7fe5b45973

Staging: rtl8712: Remove zero-testing pointer typed value

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Removes variable comparison with 0 by using !. Done using following coccinelle script. @ disable is_zero,isnt_zero @ expression *E; expression E1,f; @@ E = f(…) ?E = E1 @ disable is_zero,isnt_zero @ expression *E; @@ ( E == – 0 + NULL | E != – 0 + NULL | …

Continue reading