From: David Sterba Date: Tue, 19 Apr 2011 16:00:01 +0000 (+0200) Subject: btrfs: unify checking of IS_ERR and null X-Git-Tag: v3.0-rc1~38^2~9^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c704005d886cf0bc9bc3974eb009b22fe0da32c7;p=pandora-kernel.git btrfs: unify checking of IS_ERR and null use IS_ERR_OR_NULL when possible, done by this coccinelle script: @ match @ identifier id; @@ ( - BUG_ON(IS_ERR(id) || !id); + BUG_ON(IS_ERR_OR_NULL(id)); | - IS_ERR(id) || !id + IS_ERR_OR_NULL(id) | - !id || IS_ERR(id) + IS_ERR_OR_NULL(id) ) Signed-off-by: David Sterba --- Reading git-diff-tree failed