From 59f084070c96f777f977ebd58dc934b9d2a1d95b Mon Sep 17 00:00:00 2001 From: Amitoj Kaur Chawla Date: Thu, 2 Apr 2015 23:01:04 +0530 Subject: [PATCH] Staging: sm750fb: Remove zero testing pointer typed value Removes variable comparison with 0. Done using following coccinelle script. @ disable is_zero,isnt_zero @ expression *E; expression E1,f; @@ E = f(...) <... ( - E == 0 + !E | - E != 0 + E | - 0 == E + !E | - 0 != E + E ) ...> ?E = E1 @ disable is_zero,isnt_zero @ expression *E; @@ ( E == - 0 + NULL | E != - 0 + NULL | - 0 + NULL == E | - 0 + NULL != E ) Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed